16:24:42 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/125967 16:24:42 Running as SYSTEM 16:24:42 [EnvInject] - Loading node environment variables. 16:24:42 Building remotely on prd-ubuntu2204-docker-4c-16g-6411 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-chromium 16:24:52 [ssh-agent] Looking for ssh-agent implementation... 16:24:52 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 16:24:52 $ ssh-agent 16:24:52 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXkvJQrM/agent.1561 16:24:52 SSH_AGENT_PID=1563 16:24:52 [ssh-agent] Started. 16:24:52 Running ssh-add (command line suppressed) 16:24:53 Identity added: /w/workspace/transportpce-tox-verify-chromium@tmp/private_key_15891440788166461579.key (/w/workspace/transportpce-tox-verify-chromium@tmp/private_key_15891440788166461579.key) 16:24:53 [ssh-agent] Using credentials jenkins (jenkins-ssh) 16:24:53 The recommended git tool is: NONE 16:25:15 using credential jenkins-ssh 16:25:15 Wiping out workspace first. 16:25:15 Cloning the remote Git repository 16:25:15 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 16:25:15 > git init /w/workspace/transportpce-tox-verify-chromium # timeout=10 16:25:15 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 16:25:15 > git --version # timeout=10 16:25:15 > git --version # 'git version 2.34.1' 16:25:15 using GIT_SSH to set credentials jenkins-ssh 16:25:15 Verifying host key using known hosts file, will automatically accept unseen keys 16:25:15 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 16:25:19 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 16:25:19 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 16:25:19 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 16:25:19 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 16:25:19 using GIT_SSH to set credentials jenkins-ssh 16:25:19 Verifying host key using known hosts file, will automatically accept unseen keys 16:25:19 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/67/125967/1 # timeout=10 16:25:20 > git rev-parse 87ba7f3509f2f6e2bad4f4cefaf2ca56e2a99b94^{commit} # timeout=10 16:25:20 Checking out Revision 87ba7f3509f2f6e2bad4f4cefaf2ca56e2a99b94 (refs/changes/67/125967/1) 16:25:20 > git config core.sparsecheckout # timeout=10 16:25:20 > git checkout -f 87ba7f3509f2f6e2bad4f4cefaf2ca56e2a99b94 # timeout=10 16:25:20 Commit message: "Support for openconfig 2.0" 16:25:20 > git rev-parse FETCH_HEAD^{commit} # timeout=10 16:25:20 > git rev-list --no-walk 112310495285fd3451e8150c9a0ae990def27503 # timeout=10 16:25:20 > git remote # timeout=10 16:25:20 > git submodule init # timeout=10 16:25:20 > git submodule sync # timeout=10 16:25:20 > git config --get remote.origin.url # timeout=10 16:25:20 > git submodule init # timeout=10 16:25:20 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 16:25:20 ERROR: No submodules found. 16:25:24 provisioning config files... 16:25:24 copy managed file [npmrc] to file:/home/jenkins/.npmrc 16:25:24 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 16:25:24 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins446798419864053352.sh 16:25:24 ---> python-tools-install.sh 16:25:24 Setup pyenv: 16:25:24 * system (set by /opt/pyenv/version) 16:25:24 * 3.8.20 (set by /opt/pyenv/version) 16:25:24 * 3.9.20 (set by /opt/pyenv/version) 16:25:24 3.10.15 16:25:24 3.11.10 16:25:29 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-efx2 16:25:29 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 16:25:29 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 16:25:33 lf-activate-venv(): INFO: Installing additional packages: lftools 16:26:00 lf-activate-venv(): INFO: Adding /tmp/venv-efx2/bin to PATH 16:26:00 Generating Requirements File 16:26:27 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:26:27 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 16:26:28 Python 3.11.10 16:26:28 pip 26.2.1 from /tmp/venv-efx2/lib/python3.11/site-packages/pip (python 3.11) 16:26:28 aiohappyeyeballs==2.7.1 16:26:28 aiohttp==3.14.3 16:26:28 aiosignal==1.4.0 16:26:28 appdirs==1.4.4 16:26:28 argcomplete==3.7.2 16:26:28 aspy.yaml==1.3.0 16:26:28 attrs==26.1.0 16:26:28 autopage==0.6.0 16:26:28 beautifulsoup4==4.15.0 16:26:28 boto3==1.43.90 16:26:28 botocore==1.43.90 16:26:28 bs4==0.0.2 16:26:28 certifi==2026.7.22 16:26:28 cffi==2.1.1 16:26:28 cfgv==3.5.0 16:26:28 chardet==7.6.0 16:26:28 charset-normalizer==3.5.1 16:26:28 click==8.5.0 16:26:28 cliff==4.16.0 16:26:28 cmd2==4.2.4 16:26:28 cryptography==3.3.2 16:26:28 debtcollector==3.1.0 16:26:28 decorator==5.3.1 16:26:28 defusedxml==0.7.1 16:26:28 Deprecated==1.3.1 16:26:28 distlib==0.4.3 16:26:28 dnspython==2.8.0 16:26:28 docker==7.2.0 16:26:28 dogpile.cache==1.5.0 16:26:28 durationpy==0.11 16:26:28 email-validator==2.3.0 16:26:28 filelock==3.32.6 16:26:28 frozenlist==1.8.0 16:26:28 future==1.0.0 16:26:28 gitdb==4.0.12 16:26:28 GitPython==3.1.62 16:26:28 httplib2==0.30.2 16:26:28 identify==2.6.19 16:26:28 idna==3.19 16:26:28 importlib-resources==1.5.0 16:26:28 iso8601==2.1.0 16:26:28 Jinja2==3.1.6 16:26:28 jmespath==1.1.0 16:26:28 jsonpatch==1.33 16:26:28 jsonpointer==3.1.1 16:26:28 jsonschema==4.26.0 16:26:28 jsonschema-specifications==2025.9.1 16:26:28 keystoneauth1==5.17.0 16:26:28 kubernetes==36.0.3 16:26:28 lftools==0.37.23 16:26:28 lxml==6.1.3 16:26:28 markdown-it-py==4.2.0 16:26:28 MarkupSafe==3.0.3 16:26:28 mdurl==0.1.2 16:26:28 msgpack==1.2.2 16:26:28 multi_key_dict==2.0.3 16:26:28 multidict==6.8.0 16:26:28 munch==4.0.0 16:26:28 netaddr==1.3.0 16:26:28 niet==1.4.2 16:26:28 nodeenv==1.10.0 16:26:28 oauth2client==4.1.3 16:26:28 oauthlib==3.3.1 16:26:28 openstacksdk==4.20.0 16:26:28 os-service-types==1.9.0 16:26:28 osc-lib==4.7.0 16:26:28 oslo.config==10.7.0 16:26:28 oslo.context==6.5.0 16:26:28 oslo.i18n==6.9.0 16:26:28 oslo.log==8.3.1 16:26:28 oslo.serialization==5.11.0 16:26:28 oslo.utils==10.2.0 16:26:28 packaging==26.3 16:26:28 pbr==7.0.3 16:26:28 platformdirs==4.11.8 16:26:28 prettytable==3.18.0 16:26:28 prompt_toolkit==3.0.53 16:26:28 propcache==0.5.2 16:26:28 psutil==7.2.2 16:26:28 pyasn1==0.6.4 16:26:28 pyasn1_modules==0.4.2 16:26:28 pycparser==3.0 16:26:28 pygerrit2==2.0.15 16:26:28 PyGithub==2.10.0 16:26:28 Pygments==2.21.0 16:26:28 PyJWT==2.13.0 16:26:28 PyNaCl==1.6.2 16:26:28 pyparsing==2.4.7 16:26:28 pyperclip==1.11.0 16:26:28 pyrsistent==0.20.0 16:26:28 python-dateutil==2.9.0.post0 16:26:28 python-discovery==1.6.0 16:26:28 python-heatclient==5.3.0 16:26:28 python-jenkins==1.8.3 16:26:28 python-keystoneclient==6.0.0 16:26:28 python-magnumclient==5.0.0 16:26:28 python-manilaclient==6.3.0 16:26:28 python-openstackclient==10.3.0 16:26:28 python-swiftclient==4.11.0 16:26:28 PyYAML==6.0.3 16:26:28 referencing==0.37.0 16:26:28 requests==2.34.2 16:26:28 requests-oauthlib==2.0.0 16:26:28 rfc3986==2.0.0 16:26:28 rich==15.0.0 16:26:28 rich-argparse==1.8.0 16:26:28 rpds-py==2026.6.3 16:26:28 rsa==4.9.1 16:26:28 ruamel.yaml==0.19.1 16:26:28 ruamel.yaml.clib==0.2.15 16:26:28 s3transfer==0.19.2 16:26:28 simplejson==4.1.2 16:26:28 six==1.17.0 16:26:28 smmap==5.0.3 16:26:28 soupsieve==2.9.2 16:26:28 stevedore==5.9.1 16:26:28 tabulate==0.10.0 16:26:28 toml==0.10.2 16:26:28 tomlkit==0.15.1 16:26:28 tqdm==4.70.0 16:26:28 typing_extensions==4.16.0 16:26:28 urllib3==1.26.20 16:26:28 virtualenv==21.7.9 16:26:28 wcwidth==0.8.3 16:26:28 websocket-client==1.9.2 16:26:28 wrapt==2.4.0 16:26:28 xdg==6.0.0 16:26:28 xmltodict==1.0.4 16:26:28 yarl==1.24.5 16:26:28 yq==4.1.2 16:26:28 [transportpce-tox-verify-chromium] $ /bin/sh /tmp/jenkins3729487945703466082.sh 16:26:28 ---> uv-install.sh 16:26:28 Installing uv/uvx (latest) using shell installer 16:26:29 2026-09-09 16:26:29 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71308/71308] -> "/tmp/uv-install-UKyYOd.sh" [1] 16:26:29 downloading uv 0.12.11 x86_64-unknown-linux-gnu 16:26:29 installing to /home/jenkins/.local/bin 16:26:29 uv 16:26:29 uvx 16:26:29 everything's installed! 16:26:29 16:26:29 To add $HOME/.local/bin to your PATH, either restart your shell or run: 16:26:29 16:26:29 source $HOME/.local/bin/env (sh, bash, zsh) 16:26:29 source $HOME/.local/bin/env.fish (fish) 16:26:29 Adding install location to PATH 16:26:29 ---> Validating uv/uvx install 16:26:29 uvx 0.12.11 (x86_64-unknown-linux-gnu) 16:26:29 [EnvInject] - Injecting environment variables from a build step. 16:26:29 [EnvInject] - Injecting as environment variables the properties content 16:26:29 PYTHON=python3 16:26:29 16:26:29 [EnvInject] - Variables injected successfully. 16:26:29 [transportpce-tox-verify-chromium] $ /bin/bash -l /tmp/jenkins13800778653310676173.sh 16:26:29 ---> tox-install.sh 16:26:29 + source /home/jenkins/lf-env.sh 16:26:29 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 16:26:29 ++ mktemp -d /tmp/venv-XXXX 16:26:29 + lf_venv=/tmp/venv-WzwW 16:26:29 + local venv_file=/tmp/.os_lf_venv 16:26:29 + local python=python3 16:26:29 + local options 16:26:29 + local set_path=true 16:26:29 + local install_args= 16:26:29 ++ 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:26:29 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 16:26:29 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 16:26:29 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 16:26:29 + true 16:26:29 + case $1 in 16:26:29 + venv_file=/tmp/.toxenv 16:26:29 + shift 2 16:26:29 + true 16:26:29 + case $1 in 16:26:29 + shift 16:26:29 + break 16:26:29 + case $python in 16:26:29 + local pkg_list= 16:26:29 + [[ -d /opt/pyenv ]] 16:26:29 + echo 'Setup pyenv:' 16:26:29 Setup pyenv: 16:26:29 + export PYENV_ROOT=/opt/pyenv 16:26:29 + PYENV_ROOT=/opt/pyenv 16:26:29 + 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:26:29 + 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:26:29 + pyenv versions 16:26:30 system 16:26:30 3.8.20 16:26:30 3.9.20 16:26:30 3.10.15 16:26:30 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-chromium/.python-version) 16:26:30 + command -v pyenv 16:26:30 ++ pyenv init - --no-rehash 16:26:30 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 16:26:30 for i in ${!paths[@]}; do 16:26:30 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 16:26:30 fi; done; 16:26:30 echo "${paths[*]}"'\'')" 16:26:30 export PATH="/opt/pyenv/shims:${PATH}" 16:26:30 export PYENV_SHELL=bash 16:26:30 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 16:26:30 pyenv() { 16:26:30 local command 16:26:30 command="${1:-}" 16:26:30 if [ "$#" -gt 0 ]; then 16:26:30 shift 16:26:30 fi 16:26:30 16:26:30 case "$command" in 16:26:30 rehash|shell) 16:26:30 eval "$(pyenv "sh-$command" "$@")" 16:26:30 ;; 16:26:30 *) 16:26:30 command pyenv "$command" "$@" 16:26:30 ;; 16:26:30 esac 16:26:30 }' 16:26:30 +++ bash --norc -ec 'IFS=:; paths=($PATH); 16:26:30 for i in ${!paths[@]}; do 16:26:30 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 16:26:30 fi; done; 16:26:30 echo "${paths[*]}"' 16:26:30 ++ 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:26:30 ++ 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:26:30 ++ 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:26:30 ++ export PYENV_SHELL=bash 16:26:30 ++ PYENV_SHELL=bash 16:26:30 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 16:26:30 +++ complete -F _pyenv pyenv 16:26:30 ++ lf-pyver python3 16:26:30 ++ local py_version_xy=python3 16:26:30 ++ local py_version_xyz= 16:26:30 ++ pyenv versions 16:26:30 ++ sed 's/^[ *]* //' 16:26:30 ++ local command 16:26:30 ++ command=versions 16:26:30 ++ '[' 1 -gt 0 ']' 16:26:30 ++ awk '{ print $1 }' 16:26:30 ++ shift 16:26:30 ++ case "$command" in 16:26:30 ++ command pyenv versions 16:26:30 ++ grep -E '^[0-9.]*[0-9]$' 16:26:30 ++ [[ ! -s /tmp/.pyenv_versions ]] 16:26:30 +++ grep '^3' /tmp/.pyenv_versions 16:26:30 +++ tail -n 1 16:26:30 +++ sort -V 16:26:30 ++ py_version_xyz=3.11.10 16:26:30 ++ [[ -z 3.11.10 ]] 16:26:30 ++ echo 3.11.10 16:26:30 ++ return 0 16:26:30 + pyenv local 3.11.10 16:26:30 + local command 16:26:30 + command=local 16:26:30 + '[' 2 -gt 0 ']' 16:26:30 + shift 16:26:30 + case "$command" in 16:26:30 + command pyenv local 3.11.10 16:26:30 + for arg in "$@" 16:26:30 + case $arg in 16:26:30 + pkg_list+='tox ' 16:26:30 + for arg in "$@" 16:26:30 + case $arg in 16:26:30 + pkg_list+='virtualenv ' 16:26:30 + for arg in "$@" 16:26:30 + case $arg in 16:26:30 + pkg_list+='urllib3~=1.26.15 ' 16:26:30 + [[ -f /tmp/.toxenv ]] 16:26:30 + [[ ! -f /tmp/.toxenv ]] 16:26:30 + [[ -n '' ]] 16:26:30 + python3 -m venv /tmp/venv-WzwW 16:26:34 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-WzwW' 16:26:34 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-WzwW 16:26:34 + echo /tmp/venv-WzwW 16:26:34 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 16:26:34 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 16:26:34 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 16:26:34 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 16:26:34 + local 'pip_opts=--upgrade --quiet' 16:26:34 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 16:26:34 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 16:26:34 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 16:26:34 + [[ -n '' ]] 16:26:34 + [[ -n '' ]] 16:26:34 + lf-venv-pip-install /tmp/venv-WzwW/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 16:26:34 + local venv_python=/tmp/venv-WzwW/bin/python3 16:26:34 + shift 16:26:34 + local upstream=https://pypi.org/simple 16:26:34 + /tmp/venv-WzwW/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:26:38 + return 0 16:26:38 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 16:26:38 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 16:26:38 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 16:26:38 + lf-venv-pip-install /tmp/venv-WzwW/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:26:38 + local venv_python=/tmp/venv-WzwW/bin/python3 16:26:38 + shift 16:26:38 + local upstream=https://pypi.org/simple 16:26:38 + /tmp/venv-WzwW/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:26:40 + return 0 16:26:40 + type python3 16:26:40 + true 16:26:40 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-WzwW/bin to PATH' 16:26:40 lf-activate-venv(): INFO: Adding /tmp/venv-WzwW/bin to PATH 16:26:40 + PATH=/tmp/venv-WzwW/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:26:40 + return 0 16:26:40 + python3 --version 16:26:40 Python 3.11.10 16:26:40 + python3 -m pip --version 16:26:40 pip 26.2.1 from /tmp/venv-WzwW/lib/python3.11/site-packages/pip (python 3.11) 16:26:40 + python3 -m pip freeze 16:26:40 cachetools==7.1.8 16:26:40 colorama==0.4.6 16:26:40 distlib==0.4.3 16:26:40 filelock==3.32.6 16:26:40 packaging==26.3 16:26:40 platformdirs==4.11.8 16:26:40 pluggy==1.6.0 16:26:40 pyproject-api==1.11.0 16:26:40 python-discovery==1.6.0 16:26:40 tomli_w==1.2.0 16:26:40 tox==4.61.4 16:26:40 typing_extensions==4.16.0 16:26:40 urllib3==1.26.20 16:26:40 virtualenv==21.7.9 16:26:41 [transportpce-tox-verify-chromium] $ /bin/sh -xe /tmp/jenkins14211233518383898093.sh 16:26:41 [EnvInject] - Injecting environment variables from a build step. 16:26:41 [EnvInject] - Injecting as environment variables the properties content 16:26:41 PARALLEL=True 16:26:41 16:26:41 [EnvInject] - Variables injected successfully. 16:26:41 [transportpce-tox-verify-chromium] $ /bin/bash -l /tmp/jenkins17011757868450927729.sh 16:26:41 ---> tox-run.sh 16:26:41 + 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:26:41 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-chromium/archives/tox 16:26:41 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-chromium/archives/docs 16:26:41 + mkdir -p /w/workspace/transportpce-tox-verify-chromium/archives/tox 16:26:41 + cd /w/workspace/transportpce-tox-verify-chromium/. 16:26:41 + source /home/jenkins/lf-env.sh 16:26:41 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 16:26:41 ++ mktemp -d /tmp/venv-XXXX 16:26:41 + lf_venv=/tmp/venv-NFV3 16:26:41 + local venv_file=/tmp/.os_lf_venv 16:26:41 + local python=python3 16:26:41 + local options 16:26:41 + local set_path=true 16:26:41 + local install_args= 16:26:41 ++ getopt -o np:v: -l no-path,system-site-packages,python:,venv-file: -n lf-activate-venv -- --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 16:26:41 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 16:26:41 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 16:26:41 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 16:26:41 + true 16:26:41 + case $1 in 16:26:41 + venv_file=/tmp/.toxenv 16:26:41 + shift 2 16:26:41 + true 16:26:41 + case $1 in 16:26:41 + shift 16:26:41 + break 16:26:41 + case $python in 16:26:41 + local pkg_list= 16:26:41 + [[ -d /opt/pyenv ]] 16:26:41 + echo 'Setup pyenv:' 16:26:41 Setup pyenv: 16:26:41 + export PYENV_ROOT=/opt/pyenv 16:26:41 + PYENV_ROOT=/opt/pyenv 16:26:41 + 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:26:41 + 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:26:41 + pyenv versions 16:26:41 system 16:26:41 3.8.20 16:26:41 3.9.20 16:26:41 3.10.15 16:26:41 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-chromium/.python-version) 16:26:41 + command -v pyenv 16:26:41 ++ pyenv init - --no-rehash 16:26:41 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 16:26:41 for i in ${!paths[@]}; do 16:26:41 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 16:26:41 fi; done; 16:26:41 echo "${paths[*]}"'\'')" 16:26:41 export PATH="/opt/pyenv/shims:${PATH}" 16:26:41 export PYENV_SHELL=bash 16:26:41 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 16:26:41 pyenv() { 16:26:41 local command 16:26:41 command="${1:-}" 16:26:41 if [ "$#" -gt 0 ]; then 16:26:41 shift 16:26:41 fi 16:26:41 16:26:41 case "$command" in 16:26:41 rehash|shell) 16:26:41 eval "$(pyenv "sh-$command" "$@")" 16:26:41 ;; 16:26:41 *) 16:26:41 command pyenv "$command" "$@" 16:26:41 ;; 16:26:41 esac 16:26:41 }' 16:26:41 +++ bash --norc -ec 'IFS=:; paths=($PATH); 16:26:41 for i in ${!paths[@]}; do 16:26:41 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 16:26:41 fi; done; 16:26:41 echo "${paths[*]}"' 16:26:41 ++ 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:26:41 ++ 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:26:41 ++ 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:26:41 ++ export PYENV_SHELL=bash 16:26:41 ++ PYENV_SHELL=bash 16:26:41 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 16:26:41 +++ complete -F _pyenv pyenv 16:26:41 ++ lf-pyver python3 16:26:41 ++ local py_version_xy=python3 16:26:41 ++ local py_version_xyz= 16:26:41 ++ pyenv versions 16:26:41 ++ sed 's/^[ *]* //' 16:26:41 ++ local command 16:26:41 ++ command=versions 16:26:41 ++ '[' 1 -gt 0 ']' 16:26:41 ++ shift 16:26:41 ++ case "$command" in 16:26:41 ++ command pyenv versions 16:26:41 ++ grep -E '^[0-9.]*[0-9]$' 16:26:41 ++ awk '{ print $1 }' 16:26:41 ++ [[ ! -s /tmp/.pyenv_versions ]] 16:26:41 +++ grep '^3' /tmp/.pyenv_versions 16:26:41 +++ tail -n 1 16:26:41 +++ sort -V 16:26:41 ++ py_version_xyz=3.11.10 16:26:41 ++ [[ -z 3.11.10 ]] 16:26:41 ++ echo 3.11.10 16:26:41 ++ return 0 16:26:41 + pyenv local 3.11.10 16:26:41 + local command 16:26:41 + command=local 16:26:41 + '[' 2 -gt 0 ']' 16:26:41 + shift 16:26:41 + case "$command" in 16:26:41 + command pyenv local 3.11.10 16:26:41 + for arg in "$@" 16:26:41 + case $arg in 16:26:41 + pkg_list+='tox ' 16:26:41 + for arg in "$@" 16:26:41 + case $arg in 16:26:41 + pkg_list+='virtualenv ' 16:26:41 + for arg in "$@" 16:26:41 + case $arg in 16:26:41 + pkg_list+='urllib3~=1.26.15 ' 16:26:41 + [[ -f /tmp/.toxenv ]] 16:26:41 ++ cat /tmp/.toxenv 16:26:41 + lf_venv=/tmp/venv-WzwW 16:26:41 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-WzwW from' file:/tmp/.toxenv 16:26:41 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-WzwW from file:/tmp/.toxenv 16:26:41 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 16:26:41 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 16:26:41 + local 'pip_opts=--upgrade --quiet' 16:26:41 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 16:26:41 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 16:26:41 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 16:26:41 + [[ -n '' ]] 16:26:41 + [[ -n '' ]] 16:26:41 + lf-venv-pip-install /tmp/venv-WzwW/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 16:26:41 + local venv_python=/tmp/venv-WzwW/bin/python3 16:26:41 + shift 16:26:41 + local upstream=https://pypi.org/simple 16:26:41 + /tmp/venv-WzwW/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:26:42 + return 0 16:26:42 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 16:26:42 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 16:26:42 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 16:26:42 + lf-venv-pip-install /tmp/venv-WzwW/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:26:42 + local venv_python=/tmp/venv-WzwW/bin/python3 16:26:42 + shift 16:26:42 + local upstream=https://pypi.org/simple 16:26:42 + /tmp/venv-WzwW/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:26:43 + return 0 16:26:43 + type python3 16:26:43 + true 16:26:43 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-WzwW/bin to PATH' 16:26:43 lf-activate-venv(): INFO: Adding /tmp/venv-WzwW/bin to PATH 16:26:43 + PATH=/tmp/venv-WzwW/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:26:43 + return 0 16:26:43 + [[ -d /opt/pyenv ]] 16:26:43 + echo '---> Setting up pyenv' 16:26:43 ---> Setting up pyenv 16:26:43 + export PYENV_ROOT=/opt/pyenv 16:26:43 + PYENV_ROOT=/opt/pyenv 16:26:43 + export PATH=/opt/pyenv/bin:/tmp/venv-WzwW/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:26:43 + PATH=/opt/pyenv/bin:/tmp/venv-WzwW/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:26:43 ++ pwd 16:26:43 + PYTHONPATH=/w/workspace/transportpce-tox-verify-chromium 16:26:43 + export PYTHONPATH 16:26:43 + export TOX_TESTENV_PASSENV=PYTHONPATH 16:26:43 + TOX_TESTENV_PASSENV=PYTHONPATH 16:26:43 + tox --version 16:26:44 4.61.4 from /tmp/venv-WzwW/lib/python3.11/site-packages/tox/__init__.py 16:26:44 + PARALLEL=True 16:26:44 + TOX_OPTIONS_LIST= 16:26:44 + [[ -n '' ]] 16:26:44 + case ${PARALLEL,,} in 16:26:44 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 16:26:44 + tee -a /w/workspace/transportpce-tox-verify-chromium/archives/tox/tox.log 16:26:44 + tox --parallel auto --parallel-live 16:26:45 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 16:26:46 checkbashisms: freeze> python -m pip freeze --all 16:26:46 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:26:46 docs: install_deps> python -I -m pip install -r docs/requirements.txt 16:26:46 checkbashisms: pip==26.2.1,setuptools==84.0.0 16:26:46 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./fixCIcentOS8reposMirrors.sh 16:26:46 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:26:46 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-chromium/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 16:26:48 checkbashisms: OK ✔ in 3.3 seconds 16:26:48 pre-commit: install_deps> python -I -m pip install pre-commit 16:26:50 pre-commit: freeze> python -m pip freeze --all 16:26:50 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:26:50 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./fixCIcentOS8reposMirrors.sh 16:26:50 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:26:50 /usr/bin/cpan 16:26:50 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-chromium/tests> pre-commit run --all-files --show-diff-on-failure 16:26:51 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 16:26:51 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 16:26:52 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 16:26:52 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 16:26:53 [INFO] Initializing environment for https://github.com/hhatto/autopep8. 16:26:53 buildcontroller: freeze> python -m pip freeze --all 16:26:53 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:26:53 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./build_controller.sh 16:26:53 + update-java-alternatives -l 16:26:53 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 16:26:53 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 16:26:53 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 16:26:53 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 16:26:53 update-alternatives: error: no alternatives for jaotc 16:26:53 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 16:26:53 update-alternatives: error: no alternatives for rmic 16:26:53 + + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 16:26:53 java -version 16:26:53 + JAVA_VER=21 16:26:53 + echo 21 16:26:53 21 16:26:53 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 16:26:53 + javac -version 16:26:54 + JAVAC_VER=21 16:26:54 + echo 21 16:26:54 + [ 21 -ge 21 ] 16:26:54 + [ 21 -ge 21 ] 16:26:54 + echo ok, java is 21 or newer 16:26:54 + wget -nv https://dlcdn.apache.org/maven/maven-3/3.9.16/binaries/apache-maven-3.9.16-bin.tar.gz -P /tmp 16:26:54 21 16:26:54 ok, java is 21 or newer 16:26:54 2026-09-09 16:26:54 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:26:54 + sudo mkdir -p /opt 16:26:54 + sudo tar xf /tmp/apache-maven-3.9.16-bin.tar.gz -C /opt 16:26:54 [INFO] Initializing environment for https://github.com/koalaman/shellcheck-precommit. 16:26:54 + sudo ln -s /opt/apache-maven-3.9.16 /opt/maven 16:26:54 + sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn 16:26:54 + mvn --version 16:26:54 Apache Maven 3.9.16 (2bdd9fddda4b155ebf8000e807eb73fd829a51d5) 16:26:54 Maven home: /opt/maven 16:26:54 Java version: 21.0.12, vendor: Ubuntu, runtime: /usr/lib/jvm/java-21-openjdk-amd64 16:26:54 Default locale: en, platform encoding: UTF-8 16:26:54 OS name: "linux", version: "5.15.0-190-generic", arch: "amd64", family: "unix" 16:26:54 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier. 16:26:54 NOTE: Picked up JDK_JAVA_OPTIONS: 16:26:54 --add-opens=java.base/java.io=ALL-UNNAMED 16:26:54 --add-opens=java.base/java.lang=ALL-UNNAMED 16:26:54 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 16:26:54 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 16:26:54 --add-opens=java.base/java.net=ALL-UNNAMED 16:26:54 --add-opens=java.base/java.nio=ALL-UNNAMED 16:26:54 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 16:26:54 --add-opens=java.base/java.nio.file=ALL-UNNAMED 16:26:54 --add-opens=java.base/java.util=ALL-UNNAMED 16:26:54 --add-opens=java.base/java.util.jar=ALL-UNNAMED 16:26:54 --add-opens=java.base/java.util.stream=ALL-UNNAMED 16:26:54 --add-opens=java.base/java.util.zip=ALL-UNNAMED 16:26:54 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 16:26:54 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 16:26:54 -Xlog:disable 16:26:55 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:prettier@4.0.0-alpha.8. 16:26:55 [INFO] Initializing environment for https://github.com/adrienverge/yamllint. 16:26:56 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 16:26:56 [INFO] Once installed this environment will be reused. 16:26:56 [INFO] This may take a few minutes... 16:27:00 docs-linkcheck: freeze> python -m pip freeze --all 16:27:00 docs: freeze> python -m pip freeze --all 16:27:00 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:27:00 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:27:01 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:27:01 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:27:03 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 16:27:03 [INFO] Once installed this environment will be reused. 16:27:03 [INFO] This may take a few minutes... 16:27:04 docs: OK ✔ in 19.53 seconds 16:27:04 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 16:27:05 [ERROR] [ERROR] Some problems were encountered while processing the POMs: 16:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 49, column 17 16:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 57, column 17 16:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 54, column 17 16:27:05 [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:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 48, column 17 16:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-6.1.0:jar is missing. @ line 56, column 17 16:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 50, column 17 16:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 58, column 17 16:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 78, column 17 16:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 50, column 17 16:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 54, column 17 16:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 62, column 17 16:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 44, column 17 16:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 48, column 17 16:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 55, column 17 16:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 59, column 17 16:27:05 [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:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 42, column 17 16:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 123, column 17 16:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 40, column 17 16:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 44, column 17 16:27:05 @ 16:27:05 [ERROR] The build could not read 11 projects -> [Help 1] 16:27:05 [ERROR] 16:27:05 [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:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 49, column 17 16:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 57, column 17 16:27:05 [ERROR] 16:27:05 [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:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 54, column 17 16:27:05 [ERROR] 16:27:05 [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:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 48, column 17 16:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-device-6.1.0:jar is missing. @ line 56, column 17 16:27:05 [ERROR] 16:27:05 [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:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 50, column 17 16:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 58, column 17 16:27:05 [ERROR] 16:27:05 [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:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 78, column 17 16:27:05 [ERROR] 16:27:05 [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:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 50, column 17 16:27:05 [ERROR] 16:27:05 [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:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 54, column 17 16:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 62, column 17 16:27:05 [ERROR] 16:27:05 [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:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 44, column 17 16:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 48, column 17 16:27:05 [ERROR] 16:27:05 [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:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 55, column 17 16:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 59, column 17 16:27:05 [ERROR] 16:27:05 [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:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 42, column 17 16:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 123, column 17 16:27:05 [ERROR] 16:27:05 [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:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-6.1.0:jar is missing. @ line 40, column 17 16:27:05 [ERROR] 'dependencies.dependency.version' for org.opendaylight.transportpce.models:openroadm-common-9.1.0:jar is missing. @ line 44, column 17 16:27:05 [ERROR] 16:27:05 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 16:27:05 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 16:27:05 [ERROR] 16:27:05 [ERROR] For more information about the errors and possible solutions, please read the following articles: 16:27:05 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException 16:27:05 docs-linkcheck: OK ✔ in 20.33 seconds 16:27:05 buildcontroller: exit 1 (11.97 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./build_controller.sh pid=2775 16:27:05 buildcontroller: FAIL ✖ in 20.79 seconds 16:27:05 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:27:05 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:27:07 pylint: freeze> python -m pip freeze --all 16:27:07 pylint: astroid==4.0.4,dill==0.4.1,isort==9.0.1,mccabe==0.7.0,mypy_extensions==1.1.0,pip==26.2.1,platformdirs==4.11.8,pylint==4.0.8,setuptools==84.0.0,tomlkit==0.15.1 16:27:07 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:27:08 [INFO] Installing environment for https://github.com/hhatto/autopep8. 16:27:08 [INFO] Once installed this environment will be reused. 16:27:08 [INFO] This may take a few minutes... 16:27:12 [INFO] Installing environment for https://github.com/perltidy/perltidy. 16:27:12 [INFO] Once installed this environment will be reused. 16:27:12 [INFO] This may take a few minutes... 16:27:12 build_karaf_tests221: freeze> python -m pip freeze --all 16:27:12 build_karaf_tests121: freeze> python -m pip freeze --all 16:27:12 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:27:12 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh 16:27:12 build karaf in karaf221 with ./karaf221.env 16:27:13 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:27:13 build_karaf_tests121: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh 16:27:13 build karaf in karaf121 with ./karaf121.env 16:27:13 NOTE: Picked up JDK_JAVA_OPTIONS: 16:27:13 --add-opens=java.base/java.io=ALL-UNNAMED 16:27:13 --add-opens=java.base/java.lang=ALL-UNNAMED 16:27:13 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 16:27:13 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 16:27:13 --add-opens=java.base/java.net=ALL-UNNAMED 16:27:13 --add-opens=java.base/java.nio=ALL-UNNAMED 16:27:13 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 16:27:13 --add-opens=java.base/java.nio.file=ALL-UNNAMED 16:27:13 --add-opens=java.base/java.util=ALL-UNNAMED 16:27:13 --add-opens=java.base/java.util.jar=ALL-UNNAMED 16:27:13 --add-opens=java.base/java.util.stream=ALL-UNNAMED 16:27:13 --add-opens=java.base/java.util.zip=ALL-UNNAMED 16:27:13 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 16:27:13 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 16:27:13 -Xlog:disable 16:27:13 NOTE: Picked up JDK_JAVA_OPTIONS: 16:27:13 --add-opens=java.base/java.io=ALL-UNNAMED 16:27:13 --add-opens=java.base/java.lang=ALL-UNNAMED 16:27:13 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 16:27:13 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 16:27:13 --add-opens=java.base/java.net=ALL-UNNAMED 16:27:13 --add-opens=java.base/java.nio=ALL-UNNAMED 16:27:13 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 16:27:13 --add-opens=java.base/java.nio.file=ALL-UNNAMED 16:27:13 --add-opens=java.base/java.util=ALL-UNNAMED 16:27:13 --add-opens=java.base/java.util.jar=ALL-UNNAMED 16:27:13 --add-opens=java.base/java.util.stream=ALL-UNNAMED 16:27:13 --add-opens=java.base/java.util.zip=ALL-UNNAMED 16:27:13 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 16:27:13 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 16:27:13 -Xlog:disable 16:27:21 [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:27:21 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:13.1.0-SNAPSHOT (runtime) 16:27:21 [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:27:21 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:13.1.0-SNAPSHOT (runtime) 16:27:21 [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:27:21 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:13.1.0-SNAPSHOT (runtime) 16:27:21 [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:27:21 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:13.1.0-SNAPSHOT (runtime) 16:27:21 [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:27:21 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:13.1.0-SNAPSHOT (runtime) 16:27:21 [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:27:21 [ERROR] -> [Help 1] 16:27:21 [ERROR] 16:27:21 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 16:27:21 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 16:27:21 [ERROR] 16:27:21 [ERROR] For more information about the errors and possible solutions, please read the following articles: 16:27:21 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 16:27:21 [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:27:21 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:13.1.0-SNAPSHOT (runtime) 16:27:21 [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:27:21 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:13.1.0-SNAPSHOT (runtime) 16:27:21 [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:27:21 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:13.1.0-SNAPSHOT (runtime) 16:27:21 [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:27:21 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:13.1.0-SNAPSHOT (runtime) 16:27:21 [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:27:21 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:13.1.0-SNAPSHOT (runtime) 16:27:21 [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:27:21 [ERROR] -> [Help 1] 16:27:21 [ERROR] 16:27:21 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 16:27:21 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 16:27:21 [ERROR] 16:27:21 [ERROR] For more information about the errors and possible solutions, please read the following articles: 16:27:21 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 16:27:21 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 16:27:21 build_karaf_tests221: exit 127 (8.80 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh pid=3488 16:27:21 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 16:27:21 build_karaf_tests221: FAIL ✖ in 16.39 seconds 16:27:21 build_karaf_tests121: exit 127 (8.75 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh pid=3524 16:27:22 build_karaf_tests121: FAIL ✖ in 16.44 seconds 16:27:22 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:27:22 build_karaf_tests200: 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:27:24 [INFO] Installing environment for https://github.com/pre-commit/mirrors-prettier. 16:27:24 [INFO] Once installed this environment will be reused. 16:27:24 [INFO] This may take a few minutes... 16:27:27 [INFO] Installing environment for https://github.com/adrienverge/yamllint. 16:27:27 [INFO] Once installed this environment will be reused. 16:27:27 [INFO] This may take a few minutes... 16:27:28 build_karaf_tests71: freeze> python -m pip freeze --all 16:27:28 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:27:28 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh 16:27:28 build karaf in karaf71 with ./karaf71.env 16:27:28 NOTE: Picked up JDK_JAVA_OPTIONS: 16:27:28 --add-opens=java.base/java.io=ALL-UNNAMED 16:27:28 --add-opens=java.base/java.lang=ALL-UNNAMED 16:27:28 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 16:27:28 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 16:27:28 --add-opens=java.base/java.net=ALL-UNNAMED 16:27:28 --add-opens=java.base/java.nio=ALL-UNNAMED 16:27:28 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 16:27:28 --add-opens=java.base/java.nio.file=ALL-UNNAMED 16:27:28 --add-opens=java.base/java.util=ALL-UNNAMED 16:27:28 --add-opens=java.base/java.util.jar=ALL-UNNAMED 16:27:28 --add-opens=java.base/java.util.stream=ALL-UNNAMED 16:27:28 --add-opens=java.base/java.util.zip=ALL-UNNAMED 16:27:28 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 16:27:28 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 16:27:28 -Xlog:disable 16:27:28 build_karaf_tests200: freeze> python -m pip freeze --all 16:27:29 build_karaf_tests200: 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:27:29 build_karaf_tests200: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh 16:27:29 build karaf in karafoc200 with ./karafoc200.env 16:27:29 NOTE: Picked up JDK_JAVA_OPTIONS: 16:27:29 --add-opens=java.base/java.io=ALL-UNNAMED 16:27:29 --add-opens=java.base/java.lang=ALL-UNNAMED 16:27:29 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 16:27:29 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 16:27:29 --add-opens=java.base/java.net=ALL-UNNAMED 16:27:29 --add-opens=java.base/java.nio=ALL-UNNAMED 16:27:29 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 16:27:29 --add-opens=java.base/java.nio.file=ALL-UNNAMED 16:27:29 --add-opens=java.base/java.util=ALL-UNNAMED 16:27:29 --add-opens=java.base/java.util.jar=ALL-UNNAMED 16:27:29 --add-opens=java.base/java.util.stream=ALL-UNNAMED 16:27:29 --add-opens=java.base/java.util.zip=ALL-UNNAMED 16:27:29 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 16:27:29 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 16:27:29 -Xlog:disable 16:27:33 trim trailing whitespace.................................................Passed 16:27:34 fix end of files.........................................................Passed 16:27:34 [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:27:34 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:13.1.0-SNAPSHOT (runtime) 16:27:34 [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:27:34 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:13.1.0-SNAPSHOT (runtime) 16:27:34 [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:27:34 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:13.1.0-SNAPSHOT (runtime) 16:27:34 [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:27:34 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:13.1.0-SNAPSHOT (runtime) 16:27:34 [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:27:34 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:13.1.0-SNAPSHOT (runtime) 16:27:34 [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:27:34 [ERROR] -> [Help 1] 16:27:34 [ERROR] 16:27:34 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 16:27:34 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 16:27:34 [ERROR] 16:27:34 [ERROR] For more information about the errors and possible solutions, please read the following articles: 16:27:34 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 16:27:34 check for added large files.............................................../build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 16:27:34 build_karaf_tests71: exit 127 (5.86 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh pid=3902 16:27:34 build_karaf_tests71: FAIL ✖ in 12.63 seconds 16:27:34 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:27:34 Passed 16:27:34 check for merge conflicts................................................[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:27:34 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce:xml:features:13.1.0-SNAPSHOT (runtime) 16:27:34 [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:27:34 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:13.1.0-SNAPSHOT (runtime) 16:27:34 [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:27:34 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-inventory:xml:features:13.1.0-SNAPSHOT (runtime) 16:27:34 [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:27:34 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-nbinotifications:xml:features:13.1.0-SNAPSHOT (runtime) 16:27:34 [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:27:34 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-dmaap-client:xml:features:13.1.0-SNAPSHOT (runtime) 16:27:34 [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:27:34 [ERROR] -> [Help 1] 16:27:34 [ERROR] 16:27:34 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 16:27:34 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 16:27:34 [ERROR] 16:27:34 [ERROR] For more information about the errors and possible solutions, please read the following articles: 16:27:34 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 16:27:34 Passed 16:27:34 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 16:27:35 build_karaf_tests200: exit 127 (5.99 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./build_karaf_for_tests.sh pid=3973 16:27:35 check for case conflicts.................................................Passed 16:27:35 build_karaf_tests200: FAIL ✖ in 13.2 seconds 16:27:35 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:27:35 check json...............................................................Passed 16:27:35 mixed line ending........................................................Passed 16:27:35 Tabs remover.............................................................Passed 16:27:35 autopep8................................................................. 16:27:36 ------------------------------------ 16:27:36 Your code has been rated at 10.00/10 16:27:36 16:27:38 Passed 16:27:38 perltidy.................................................................pylint: OK ✔ in 34.52 seconds 16:27:38 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:27:39 Passed 16:27:39 ShellCheck v0.11.0.......................................................buildlighty: freeze> python -m pip freeze --all 16:27:43 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:27:43 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-chromium/lighty> ./build.sh 16:27:43 NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED 16:27:43 sims: freeze> python -m pip freeze --all 16:27:44 Passed 16:27:44 prettier.................................................................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:27:44 sims: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./install_lightynode.sh 16:27:44 Using lighynode version 22.1.0.7 16:27:44 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 16:27:45 Passed 16:27:46 yamllint.................................................................Passed 16:27:46 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-chromium/tests> pre-commit run gitlint-ci --hook-stage manual 16:27:46 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 16:27:46 [INFO] Once installed this environment will be reused. 16:27:46 [INFO] This may take a few minutes... 16:27:55 [ERROR] Failed to execute goal on project tpce: Could not resolve dependencies for project io.lighty.controllers:tpce:jar:13.1.0-SNAPSHOT 16:27:55 [ERROR] dependency: org.opendaylight.transportpce:transportpce-api:jar:13.1.0-SNAPSHOT (compile) 16:27:55 [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:27:55 [ERROR] dependency: org.opendaylight.transportpce:transportpce-common:jar:13.1.0-SNAPSHOT (compile) 16:27:55 [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:27:55 [ERROR] dependency: org.opendaylight.transportpce:transportpce-networkmodel:jar:13.1.0-SNAPSHOT (compile) 16:27:55 [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:27:55 [ERROR] dependency: org.opendaylight.transportpce:transportpce-pce:jar:13.1.0-SNAPSHOT (compile) 16:27:55 [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:27:55 [ERROR] dependency: org.opendaylight.transportpce:transportpce-olm:jar:13.1.0-SNAPSHOT (compile) 16:27:55 [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:27:55 [ERROR] dependency: org.opendaylight.transportpce:transportpce-servicehandler:jar:13.1.0-SNAPSHOT (compile) 16:27:55 [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:27:55 [ERROR] dependency: org.opendaylight.transportpce:transportpce-tapi:jar:13.1.0-SNAPSHOT (compile) 16:27:55 [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:27:55 [ERROR] dependency: org.opendaylight.transportpce:transportpce-nbinotifications:jar:13.1.0-SNAPSHOT (compile) 16:27:55 [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:27:55 [ERROR] -> [Help 1] 16:27:55 [ERROR] 16:27:55 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 16:27:55 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 16:27:55 [ERROR] 16:27:55 [ERROR] For more information about the errors and possible solutions, please read the following articles: 16:27:55 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 16:27:55 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 16:27:55 sims: OK ✔ in 16.67 seconds 16:27:55 buildlighty: exit 9 (12.18 seconds) /w/workspace/transportpce-tox-verify-chromium/lighty> ./build.sh pid=4295 16:27:55 gitlint..................................................................Passed 16:28:26 buildlighty: FAIL ✖ in 20.96 seconds 16:28:26 pre-commit: OK ✔ in 1 minute 7.89 seconds 16:28:26 testsPCE: freeze> python -m pip freeze --all 16:28:26 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:28:26 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh pce 16:28:26 pytest -q transportpce_tests/pce/test01_pce.py 16:30:27 EEEEEEEEEEEEEEEEEEEE [100%] 16:30:31 ==================================== ERRORS ==================================== 16:30:31 _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ 16:30:31 16:30:31 cls = 16:30:31 16:30:31 @classmethod 16:30:31 def setUpClass(cls): 16:30:31 # pylint: disable=bare-except 16:30:31 sample_files_parsed = False 16:30:31 time.sleep(20) 16:30:31 try: 16:30:31 TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 16:30:31 "..", "..", "sample_configs", "honeynode-topo.json") 16:30:31 with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: 16:30:31 cls.simple_topo_bi_dir_data = topo_bi_dir.read() 16:30:31 16:30:31 TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 16:30:31 "..", "..", "sample_configs", "NW-simple-topology.json") 16:30:31 16:30:31 with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: 16:30:31 cls.simple_topo_uni_dir_data = topo_uni_dir.read() 16:30:31 16:30:31 TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 16:30:31 "..", "..", "sample_configs", "NW-for-test-5-4.json") 16:30:31 with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: 16:30:31 cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() 16:30:31 PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 16:30:31 "..", "..", "sample_configs", "pce_portmapping_121.json") 16:30:31 with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: 16:30:31 cls.port_mapping_data = port_mapping.read() 16:30:31 sample_files_parsed = True 16:30:31 except PermissionError as err: 16:30:31 print("Permission Error when trying to read sample files\n", err) 16:30:31 sys.exit(2) 16:30:31 except FileNotFoundError as err: 16:30:31 print("File Not found Error when trying to read sample files\n", err) 16:30:31 sys.exit(2) 16:30:31 except: 16:30:31 print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) 16:30:31 sys.exit(2) 16:30:31 finally: 16:30:31 if sample_files_parsed: 16:30:31 print("sample files content loaded") 16:30:31 16:30:31 > cls.processes = test_utils.start_tpce() 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 16:30:31 transportpce_tests/pce/test01_pce.py:93: 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 16:30:31 def start_tpce(): 16:30:31 if 'NO_ODL_STARTUP' in os.environ: 16:30:31 print('No OpenDaylight instance to start!') 16:30:31 return [] 16:30:31 print('starting OpenDaylight...') 16:30:31 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 16:30:31 process = start_lighty() 16:30:31 else: 16:30:31 process = start_karaf() 16:30:31 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 16:30:31 print('OpenDaylight started !') 16:30:31 else: 16:30:31 print('OpenDaylight failed to start !') 16:30:31 shutdown_process(process) 16:30:31 for pid in process_list: 16:30:31 shutdown_process(pid) 16:30:31 > sys.exit(1) 16:30:31 E SystemExit: 1 16:30:31 16:30:31 transportpce_tests/common/test_utils.py:233: SystemExit 16:30:31 ---------------------------- Captured stdout setup ----------------------------- 16:30:31 sample files content loaded 16:30:31 starting OpenDaylight... 16:30:31 starting KARAF (karaf) TransportPCE build... 16:30:31 Pattern not found after 100 seconds! OpenDaylight failed to start ! 16:30:31 ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ 16:30:31 16:30:31 cls = 16:30:31 func = . at 0x7f478bf972e0> 16:30:31 when = 'setup' 16:30:31 reraise = (, ) 16:30:31 16:30:31 @classmethod 16:30:31 def from_call( 16:30:31 cls, 16:30:31 func: Callable[[], TResult], 16:30:31 when: Literal["collect", "setup", "call", "teardown"], 16:30:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:30:31 ) -> CallInfo[TResult]: 16:30:31 """Call func, wrapping the result in a CallInfo. 16:30:31 16:30:31 :param func: 16:30:31 The function to call. Called without arguments. 16:30:31 :type func: Callable[[], _pytest.runner.TResult] 16:30:31 :param when: 16:30:31 The phase in which the function is called. 16:30:31 :param reraise: 16:30:31 Exception or exceptions that shall propagate if raised by the 16:30:31 function, instead of being wrapped in the CallInfo. 16:30:31 """ 16:30:31 excinfo = None 16:30:31 instant = timing.Instant() 16:30:31 try: 16:30:31 > result: TResult | None = func() 16:30:31 ^^^^^^ 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:30:31 lambda: runtest_hook(item=item, **kwds), 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:30:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:30:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:30:31 yield 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:30:31 return (yield) 16:30:31 ^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:30:31 item.session._setupstate.setup(item) 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:30:31 col.setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:30:31 super().setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:30:31 self._request._fillfixtures() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:30:31 item.funcargs[argname] = self.getfixturevalue(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:30:31 fixturedef = self._get_active_fixturedef(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:30:31 fixturedef.execute(request=subrequest) 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 16:30:31 self = 16:30:31 request = > 16:30:31 16:30:31 def execute(self, request: SubRequest) -> FixtureValue: 16:30:31 """Return the value of this fixture, executing it if not cached.""" 16:30:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:30:31 # This needs to be done before checking if we have a cached value, since 16:30:31 # if a dependent fixture has their cache invalidated, e.g. due to 16:30:31 # parametrization, they finalize themselves and fixtures depending on it 16:30:31 # (which will likely include this fixture) setting `self.cached_result = None`. 16:30:31 # See #4871 16:30:31 requested_fixtures_that_should_finalize_us = [] 16:30:31 for argname in self.argnames: 16:30:31 fixturedef = request._get_active_fixturedef(argname) 16:30:31 # Saves requested fixtures in a list so we later can add our finalizer 16:30:31 # to them, ensuring that if a requested fixture gets torn down we get torn 16:30:31 # down first. This is generally handled by SetupState, but still currently 16:30:31 # needed when this fixture is not parametrized but depends on a parametrized 16:30:31 # fixture. 16:30:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:30:31 16:30:31 # Check for (and return) cached value/exception. 16:30:31 if self.cached_result is not None: 16:30:31 request_cache_key = self.cache_key(request) 16:30:31 cache_key = self.cached_result[1] 16:30:31 try: 16:30:31 # Attempt to make a normal == check: this might fail for objects 16:30:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:30:31 cache_hit = bool(request_cache_key == cache_key) 16:30:31 except (ValueError, RuntimeError): 16:30:31 # If the comparison raises, use 'is' as fallback. 16:30:31 cache_hit = request_cache_key is cache_key 16:30:31 16:30:31 if cache_hit: 16:30:31 if self.cached_result[2] is not None: 16:30:31 exc, exc_tb = self.cached_result[2] 16:30:31 raise exc.with_traceback(exc_tb) 16:30:31 else: 16:30:31 return self.cached_result[0] 16:30:31 # We have a previous but differently parametrized fixture instance 16:30:31 # so we need to tear it down before creating a new one. 16:30:31 self.finish(request) 16:30:31 assert self.cached_result is None 16:30:31 16:30:31 # Add finalizer to requested fixtures we saved previously. 16:30:31 # We make sure to do this after checking for cached value to avoid 16:30:31 # adding our finalizer multiple times. (#12135) 16:30:31 finalizer = functools.partial(self.finish, request=request) 16:30:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:30:31 parent_fixture.addfinalizer(finalizer) 16:30:31 16:30:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:30:31 # which is executed last. 16:30:31 > assert not self._finalizers 16:30:31 ^^^^^^^^^^^^^^^^^^^^ 16:30:31 E AssertionError 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:30:31 ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ 16:30:31 16:30:31 cls = 16:30:31 func = . at 0x7f478bfa74c0> 16:30:31 when = 'setup' 16:30:31 reraise = (, ) 16:30:31 16:30:31 @classmethod 16:30:31 def from_call( 16:30:31 cls, 16:30:31 func: Callable[[], TResult], 16:30:31 when: Literal["collect", "setup", "call", "teardown"], 16:30:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:30:31 ) -> CallInfo[TResult]: 16:30:31 """Call func, wrapping the result in a CallInfo. 16:30:31 16:30:31 :param func: 16:30:31 The function to call. Called without arguments. 16:30:31 :type func: Callable[[], _pytest.runner.TResult] 16:30:31 :param when: 16:30:31 The phase in which the function is called. 16:30:31 :param reraise: 16:30:31 Exception or exceptions that shall propagate if raised by the 16:30:31 function, instead of being wrapped in the CallInfo. 16:30:31 """ 16:30:31 excinfo = None 16:30:31 instant = timing.Instant() 16:30:31 try: 16:30:31 > result: TResult | None = func() 16:30:31 ^^^^^^ 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:30:31 lambda: runtest_hook(item=item, **kwds), 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:30:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:30:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:30:31 yield 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:30:31 return (yield) 16:30:31 ^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:30:31 item.session._setupstate.setup(item) 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:30:31 col.setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:30:31 super().setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:30:31 self._request._fillfixtures() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:30:31 item.funcargs[argname] = self.getfixturevalue(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:30:31 fixturedef = self._get_active_fixturedef(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:30:31 fixturedef.execute(request=subrequest) 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 16:30:31 self = 16:30:31 request = > 16:30:31 16:30:31 def execute(self, request: SubRequest) -> FixtureValue: 16:30:31 """Return the value of this fixture, executing it if not cached.""" 16:30:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:30:31 # This needs to be done before checking if we have a cached value, since 16:30:31 # if a dependent fixture has their cache invalidated, e.g. due to 16:30:31 # parametrization, they finalize themselves and fixtures depending on it 16:30:31 # (which will likely include this fixture) setting `self.cached_result = None`. 16:30:31 # See #4871 16:30:31 requested_fixtures_that_should_finalize_us = [] 16:30:31 for argname in self.argnames: 16:30:31 fixturedef = request._get_active_fixturedef(argname) 16:30:31 # Saves requested fixtures in a list so we later can add our finalizer 16:30:31 # to them, ensuring that if a requested fixture gets torn down we get torn 16:30:31 # down first. This is generally handled by SetupState, but still currently 16:30:31 # needed when this fixture is not parametrized but depends on a parametrized 16:30:31 # fixture. 16:30:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:30:31 16:30:31 # Check for (and return) cached value/exception. 16:30:31 if self.cached_result is not None: 16:30:31 request_cache_key = self.cache_key(request) 16:30:31 cache_key = self.cached_result[1] 16:30:31 try: 16:30:31 # Attempt to make a normal == check: this might fail for objects 16:30:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:30:31 cache_hit = bool(request_cache_key == cache_key) 16:30:31 except (ValueError, RuntimeError): 16:30:31 # If the comparison raises, use 'is' as fallback. 16:30:31 cache_hit = request_cache_key is cache_key 16:30:31 16:30:31 if cache_hit: 16:30:31 if self.cached_result[2] is not None: 16:30:31 exc, exc_tb = self.cached_result[2] 16:30:31 raise exc.with_traceback(exc_tb) 16:30:31 else: 16:30:31 return self.cached_result[0] 16:30:31 # We have a previous but differently parametrized fixture instance 16:30:31 # so we need to tear it down before creating a new one. 16:30:31 self.finish(request) 16:30:31 assert self.cached_result is None 16:30:31 16:30:31 # Add finalizer to requested fixtures we saved previously. 16:30:31 # We make sure to do this after checking for cached value to avoid 16:30:31 # adding our finalizer multiple times. (#12135) 16:30:31 finalizer = functools.partial(self.finish, request=request) 16:30:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:30:31 parent_fixture.addfinalizer(finalizer) 16:30:31 16:30:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:30:31 # which is executed last. 16:30:31 > assert not self._finalizers 16:30:31 ^^^^^^^^^^^^^^^^^^^^ 16:30:31 E AssertionError 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:30:31 ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ 16:30:31 16:30:31 cls = 16:30:31 func = . at 0x7f478bf67f60> 16:30:31 when = 'setup' 16:30:31 reraise = (, ) 16:30:31 16:30:31 @classmethod 16:30:31 def from_call( 16:30:31 cls, 16:30:31 func: Callable[[], TResult], 16:30:31 when: Literal["collect", "setup", "call", "teardown"], 16:30:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:30:31 ) -> CallInfo[TResult]: 16:30:31 """Call func, wrapping the result in a CallInfo. 16:30:31 16:30:31 :param func: 16:30:31 The function to call. Called without arguments. 16:30:31 :type func: Callable[[], _pytest.runner.TResult] 16:30:31 :param when: 16:30:31 The phase in which the function is called. 16:30:31 :param reraise: 16:30:31 Exception or exceptions that shall propagate if raised by the 16:30:31 function, instead of being wrapped in the CallInfo. 16:30:31 """ 16:30:31 excinfo = None 16:30:31 instant = timing.Instant() 16:30:31 try: 16:30:31 > result: TResult | None = func() 16:30:31 ^^^^^^ 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:30:31 lambda: runtest_hook(item=item, **kwds), 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:30:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:30:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:30:31 yield 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:30:31 return (yield) 16:30:31 ^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:30:31 item.session._setupstate.setup(item) 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:30:31 col.setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:30:31 super().setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:30:31 self._request._fillfixtures() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:30:31 item.funcargs[argname] = self.getfixturevalue(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:30:31 fixturedef = self._get_active_fixturedef(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:30:31 fixturedef.execute(request=subrequest) 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 16:30:31 self = 16:30:31 request = > 16:30:31 16:30:31 def execute(self, request: SubRequest) -> FixtureValue: 16:30:31 """Return the value of this fixture, executing it if not cached.""" 16:30:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:30:31 # This needs to be done before checking if we have a cached value, since 16:30:31 # if a dependent fixture has their cache invalidated, e.g. due to 16:30:31 # parametrization, they finalize themselves and fixtures depending on it 16:30:31 # (which will likely include this fixture) setting `self.cached_result = None`. 16:30:31 # See #4871 16:30:31 requested_fixtures_that_should_finalize_us = [] 16:30:31 for argname in self.argnames: 16:30:31 fixturedef = request._get_active_fixturedef(argname) 16:30:31 # Saves requested fixtures in a list so we later can add our finalizer 16:30:31 # to them, ensuring that if a requested fixture gets torn down we get torn 16:30:31 # down first. This is generally handled by SetupState, but still currently 16:30:31 # needed when this fixture is not parametrized but depends on a parametrized 16:30:31 # fixture. 16:30:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:30:31 16:30:31 # Check for (and return) cached value/exception. 16:30:31 if self.cached_result is not None: 16:30:31 request_cache_key = self.cache_key(request) 16:30:31 cache_key = self.cached_result[1] 16:30:31 try: 16:30:31 # Attempt to make a normal == check: this might fail for objects 16:30:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:30:31 cache_hit = bool(request_cache_key == cache_key) 16:30:31 except (ValueError, RuntimeError): 16:30:31 # If the comparison raises, use 'is' as fallback. 16:30:31 cache_hit = request_cache_key is cache_key 16:30:31 16:30:31 if cache_hit: 16:30:31 if self.cached_result[2] is not None: 16:30:31 exc, exc_tb = self.cached_result[2] 16:30:31 raise exc.with_traceback(exc_tb) 16:30:31 else: 16:30:31 return self.cached_result[0] 16:30:31 # We have a previous but differently parametrized fixture instance 16:30:31 # so we need to tear it down before creating a new one. 16:30:31 self.finish(request) 16:30:31 assert self.cached_result is None 16:30:31 16:30:31 # Add finalizer to requested fixtures we saved previously. 16:30:31 # We make sure to do this after checking for cached value to avoid 16:30:31 # adding our finalizer multiple times. (#12135) 16:30:31 finalizer = functools.partial(self.finish, request=request) 16:30:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:30:31 parent_fixture.addfinalizer(finalizer) 16:30:31 16:30:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:30:31 # which is executed last. 16:30:31 > assert not self._finalizers 16:30:31 ^^^^^^^^^^^^^^^^^^^^ 16:30:31 E AssertionError 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:30:31 ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ 16:30:31 16:30:31 cls = 16:30:31 func = . at 0x7f478bf972e0> 16:30:31 when = 'setup' 16:30:31 reraise = (, ) 16:30:31 16:30:31 @classmethod 16:30:31 def from_call( 16:30:31 cls, 16:30:31 func: Callable[[], TResult], 16:30:31 when: Literal["collect", "setup", "call", "teardown"], 16:30:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:30:31 ) -> CallInfo[TResult]: 16:30:31 """Call func, wrapping the result in a CallInfo. 16:30:31 16:30:31 :param func: 16:30:31 The function to call. Called without arguments. 16:30:31 :type func: Callable[[], _pytest.runner.TResult] 16:30:31 :param when: 16:30:31 The phase in which the function is called. 16:30:31 :param reraise: 16:30:31 Exception or exceptions that shall propagate if raised by the 16:30:31 function, instead of being wrapped in the CallInfo. 16:30:31 """ 16:30:31 excinfo = None 16:30:31 instant = timing.Instant() 16:30:31 try: 16:30:31 > result: TResult | None = func() 16:30:31 ^^^^^^ 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:30:31 lambda: runtest_hook(item=item, **kwds), 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:30:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:30:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:30:31 yield 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:30:31 return (yield) 16:30:31 ^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:30:31 item.session._setupstate.setup(item) 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:30:31 col.setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:30:31 super().setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:30:31 self._request._fillfixtures() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:30:31 item.funcargs[argname] = self.getfixturevalue(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:30:31 fixturedef = self._get_active_fixturedef(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:30:31 fixturedef.execute(request=subrequest) 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 16:30:31 self = 16:30:31 request = > 16:30:31 16:30:31 def execute(self, request: SubRequest) -> FixtureValue: 16:30:31 """Return the value of this fixture, executing it if not cached.""" 16:30:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:30:31 # This needs to be done before checking if we have a cached value, since 16:30:31 # if a dependent fixture has their cache invalidated, e.g. due to 16:30:31 # parametrization, they finalize themselves and fixtures depending on it 16:30:31 # (which will likely include this fixture) setting `self.cached_result = None`. 16:30:31 # See #4871 16:30:31 requested_fixtures_that_should_finalize_us = [] 16:30:31 for argname in self.argnames: 16:30:31 fixturedef = request._get_active_fixturedef(argname) 16:30:31 # Saves requested fixtures in a list so we later can add our finalizer 16:30:31 # to them, ensuring that if a requested fixture gets torn down we get torn 16:30:31 # down first. This is generally handled by SetupState, but still currently 16:30:31 # needed when this fixture is not parametrized but depends on a parametrized 16:30:31 # fixture. 16:30:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:30:31 16:30:31 # Check for (and return) cached value/exception. 16:30:31 if self.cached_result is not None: 16:30:31 request_cache_key = self.cache_key(request) 16:30:31 cache_key = self.cached_result[1] 16:30:31 try: 16:30:31 # Attempt to make a normal == check: this might fail for objects 16:30:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:30:31 cache_hit = bool(request_cache_key == cache_key) 16:30:31 except (ValueError, RuntimeError): 16:30:31 # If the comparison raises, use 'is' as fallback. 16:30:31 cache_hit = request_cache_key is cache_key 16:30:31 16:30:31 if cache_hit: 16:30:31 if self.cached_result[2] is not None: 16:30:31 exc, exc_tb = self.cached_result[2] 16:30:31 raise exc.with_traceback(exc_tb) 16:30:31 else: 16:30:31 return self.cached_result[0] 16:30:31 # We have a previous but differently parametrized fixture instance 16:30:31 # so we need to tear it down before creating a new one. 16:30:31 self.finish(request) 16:30:31 assert self.cached_result is None 16:30:31 16:30:31 # Add finalizer to requested fixtures we saved previously. 16:30:31 # We make sure to do this after checking for cached value to avoid 16:30:31 # adding our finalizer multiple times. (#12135) 16:30:31 finalizer = functools.partial(self.finish, request=request) 16:30:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:30:31 parent_fixture.addfinalizer(finalizer) 16:30:31 16:30:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:30:31 # which is executed last. 16:30:31 > assert not self._finalizers 16:30:31 ^^^^^^^^^^^^^^^^^^^^ 16:30:31 E AssertionError 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:30:31 ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ 16:30:31 16:30:31 cls = 16:30:31 func = . at 0x7f478e4b9120> 16:30:31 when = 'setup' 16:30:31 reraise = (, ) 16:30:31 16:30:31 @classmethod 16:30:31 def from_call( 16:30:31 cls, 16:30:31 func: Callable[[], TResult], 16:30:31 when: Literal["collect", "setup", "call", "teardown"], 16:30:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:30:31 ) -> CallInfo[TResult]: 16:30:31 """Call func, wrapping the result in a CallInfo. 16:30:31 16:30:31 :param func: 16:30:31 The function to call. Called without arguments. 16:30:31 :type func: Callable[[], _pytest.runner.TResult] 16:30:31 :param when: 16:30:31 The phase in which the function is called. 16:30:31 :param reraise: 16:30:31 Exception or exceptions that shall propagate if raised by the 16:30:31 function, instead of being wrapped in the CallInfo. 16:30:31 """ 16:30:31 excinfo = None 16:30:31 instant = timing.Instant() 16:30:31 try: 16:30:31 > result: TResult | None = func() 16:30:31 ^^^^^^ 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:30:31 lambda: runtest_hook(item=item, **kwds), 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:30:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:30:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:30:31 yield 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:30:31 return (yield) 16:30:31 ^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:30:31 item.session._setupstate.setup(item) 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:30:31 col.setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:30:31 super().setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:30:31 self._request._fillfixtures() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:30:31 item.funcargs[argname] = self.getfixturevalue(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:30:31 fixturedef = self._get_active_fixturedef(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:30:31 fixturedef.execute(request=subrequest) 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 16:30:31 self = 16:30:31 request = > 16:30:31 16:30:31 def execute(self, request: SubRequest) -> FixtureValue: 16:30:31 """Return the value of this fixture, executing it if not cached.""" 16:30:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:30:31 # This needs to be done before checking if we have a cached value, since 16:30:31 # if a dependent fixture has their cache invalidated, e.g. due to 16:30:31 # parametrization, they finalize themselves and fixtures depending on it 16:30:31 # (which will likely include this fixture) setting `self.cached_result = None`. 16:30:31 # See #4871 16:30:31 requested_fixtures_that_should_finalize_us = [] 16:30:31 for argname in self.argnames: 16:30:31 fixturedef = request._get_active_fixturedef(argname) 16:30:31 # Saves requested fixtures in a list so we later can add our finalizer 16:30:31 # to them, ensuring that if a requested fixture gets torn down we get torn 16:30:31 # down first. This is generally handled by SetupState, but still currently 16:30:31 # needed when this fixture is not parametrized but depends on a parametrized 16:30:31 # fixture. 16:30:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:30:31 16:30:31 # Check for (and return) cached value/exception. 16:30:31 if self.cached_result is not None: 16:30:31 request_cache_key = self.cache_key(request) 16:30:31 cache_key = self.cached_result[1] 16:30:31 try: 16:30:31 # Attempt to make a normal == check: this might fail for objects 16:30:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:30:31 cache_hit = bool(request_cache_key == cache_key) 16:30:31 except (ValueError, RuntimeError): 16:30:31 # If the comparison raises, use 'is' as fallback. 16:30:31 cache_hit = request_cache_key is cache_key 16:30:31 16:30:31 if cache_hit: 16:30:31 if self.cached_result[2] is not None: 16:30:31 exc, exc_tb = self.cached_result[2] 16:30:31 raise exc.with_traceback(exc_tb) 16:30:31 else: 16:30:31 return self.cached_result[0] 16:30:31 # We have a previous but differently parametrized fixture instance 16:30:31 # so we need to tear it down before creating a new one. 16:30:31 self.finish(request) 16:30:31 assert self.cached_result is None 16:30:31 16:30:31 # Add finalizer to requested fixtures we saved previously. 16:30:31 # We make sure to do this after checking for cached value to avoid 16:30:31 # adding our finalizer multiple times. (#12135) 16:30:31 finalizer = functools.partial(self.finish, request=request) 16:30:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:30:31 parent_fixture.addfinalizer(finalizer) 16:30:31 16:30:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:30:31 # which is executed last. 16:30:31 > assert not self._finalizers 16:30:31 ^^^^^^^^^^^^^^^^^^^^ 16:30:31 E AssertionError 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:30:31 ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ 16:30:31 16:30:31 cls = 16:30:31 func = . at 0x7f478bf972e0> 16:30:31 when = 'setup' 16:30:31 reraise = (, ) 16:30:31 16:30:31 @classmethod 16:30:31 def from_call( 16:30:31 cls, 16:30:31 func: Callable[[], TResult], 16:30:31 when: Literal["collect", "setup", "call", "teardown"], 16:30:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:30:31 ) -> CallInfo[TResult]: 16:30:31 """Call func, wrapping the result in a CallInfo. 16:30:31 16:30:31 :param func: 16:30:31 The function to call. Called without arguments. 16:30:31 :type func: Callable[[], _pytest.runner.TResult] 16:30:31 :param when: 16:30:31 The phase in which the function is called. 16:30:31 :param reraise: 16:30:31 Exception or exceptions that shall propagate if raised by the 16:30:31 function, instead of being wrapped in the CallInfo. 16:30:31 """ 16:30:31 excinfo = None 16:30:31 instant = timing.Instant() 16:30:31 try: 16:30:31 > result: TResult | None = func() 16:30:31 ^^^^^^ 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:30:31 lambda: runtest_hook(item=item, **kwds), 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:30:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:30:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:30:31 yield 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:30:31 return (yield) 16:30:31 ^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:30:31 item.session._setupstate.setup(item) 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:30:31 col.setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:30:31 super().setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:30:31 self._request._fillfixtures() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:30:31 item.funcargs[argname] = self.getfixturevalue(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:30:31 fixturedef = self._get_active_fixturedef(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:30:31 fixturedef.execute(request=subrequest) 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 16:30:31 self = 16:30:31 request = > 16:30:31 16:30:31 def execute(self, request: SubRequest) -> FixtureValue: 16:30:31 """Return the value of this fixture, executing it if not cached.""" 16:30:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:30:31 # This needs to be done before checking if we have a cached value, since 16:30:31 # if a dependent fixture has their cache invalidated, e.g. due to 16:30:31 # parametrization, they finalize themselves and fixtures depending on it 16:30:31 # (which will likely include this fixture) setting `self.cached_result = None`. 16:30:31 # See #4871 16:30:31 requested_fixtures_that_should_finalize_us = [] 16:30:31 for argname in self.argnames: 16:30:31 fixturedef = request._get_active_fixturedef(argname) 16:30:31 # Saves requested fixtures in a list so we later can add our finalizer 16:30:31 # to them, ensuring that if a requested fixture gets torn down we get torn 16:30:31 # down first. This is generally handled by SetupState, but still currently 16:30:31 # needed when this fixture is not parametrized but depends on a parametrized 16:30:31 # fixture. 16:30:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:30:31 16:30:31 # Check for (and return) cached value/exception. 16:30:31 if self.cached_result is not None: 16:30:31 request_cache_key = self.cache_key(request) 16:30:31 cache_key = self.cached_result[1] 16:30:31 try: 16:30:31 # Attempt to make a normal == check: this might fail for objects 16:30:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:30:31 cache_hit = bool(request_cache_key == cache_key) 16:30:31 except (ValueError, RuntimeError): 16:30:31 # If the comparison raises, use 'is' as fallback. 16:30:31 cache_hit = request_cache_key is cache_key 16:30:31 16:30:31 if cache_hit: 16:30:31 if self.cached_result[2] is not None: 16:30:31 exc, exc_tb = self.cached_result[2] 16:30:31 raise exc.with_traceback(exc_tb) 16:30:31 else: 16:30:31 return self.cached_result[0] 16:30:31 # We have a previous but differently parametrized fixture instance 16:30:31 # so we need to tear it down before creating a new one. 16:30:31 self.finish(request) 16:30:31 assert self.cached_result is None 16:30:31 16:30:31 # Add finalizer to requested fixtures we saved previously. 16:30:31 # We make sure to do this after checking for cached value to avoid 16:30:31 # adding our finalizer multiple times. (#12135) 16:30:31 finalizer = functools.partial(self.finish, request=request) 16:30:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:30:31 parent_fixture.addfinalizer(finalizer) 16:30:31 16:30:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:30:31 # which is executed last. 16:30:31 > assert not self._finalizers 16:30:31 ^^^^^^^^^^^^^^^^^^^^ 16:30:31 E AssertionError 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:30:31 ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ 16:30:31 16:30:31 cls = 16:30:31 func = . at 0x7f478bfa5d00> 16:30:31 when = 'setup' 16:30:31 reraise = (, ) 16:30:31 16:30:31 @classmethod 16:30:31 def from_call( 16:30:31 cls, 16:30:31 func: Callable[[], TResult], 16:30:31 when: Literal["collect", "setup", "call", "teardown"], 16:30:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:30:31 ) -> CallInfo[TResult]: 16:30:31 """Call func, wrapping the result in a CallInfo. 16:30:31 16:30:31 :param func: 16:30:31 The function to call. Called without arguments. 16:30:31 :type func: Callable[[], _pytest.runner.TResult] 16:30:31 :param when: 16:30:31 The phase in which the function is called. 16:30:31 :param reraise: 16:30:31 Exception or exceptions that shall propagate if raised by the 16:30:31 function, instead of being wrapped in the CallInfo. 16:30:31 """ 16:30:31 excinfo = None 16:30:31 instant = timing.Instant() 16:30:31 try: 16:30:31 > result: TResult | None = func() 16:30:31 ^^^^^^ 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:30:31 lambda: runtest_hook(item=item, **kwds), 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:30:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:30:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:30:31 yield 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:30:31 return (yield) 16:30:31 ^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:30:31 item.session._setupstate.setup(item) 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:30:31 col.setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:30:31 super().setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:30:31 self._request._fillfixtures() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:30:31 item.funcargs[argname] = self.getfixturevalue(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:30:31 fixturedef = self._get_active_fixturedef(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:30:31 fixturedef.execute(request=subrequest) 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 16:30:31 self = 16:30:31 request = > 16:30:31 16:30:31 def execute(self, request: SubRequest) -> FixtureValue: 16:30:31 """Return the value of this fixture, executing it if not cached.""" 16:30:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:30:31 # This needs to be done before checking if we have a cached value, since 16:30:31 # if a dependent fixture has their cache invalidated, e.g. due to 16:30:31 # parametrization, they finalize themselves and fixtures depending on it 16:30:31 # (which will likely include this fixture) setting `self.cached_result = None`. 16:30:31 # See #4871 16:30:31 requested_fixtures_that_should_finalize_us = [] 16:30:31 for argname in self.argnames: 16:30:31 fixturedef = request._get_active_fixturedef(argname) 16:30:31 # Saves requested fixtures in a list so we later can add our finalizer 16:30:31 # to them, ensuring that if a requested fixture gets torn down we get torn 16:30:31 # down first. This is generally handled by SetupState, but still currently 16:30:31 # needed when this fixture is not parametrized but depends on a parametrized 16:30:31 # fixture. 16:30:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:30:31 16:30:31 # Check for (and return) cached value/exception. 16:30:31 if self.cached_result is not None: 16:30:31 request_cache_key = self.cache_key(request) 16:30:31 cache_key = self.cached_result[1] 16:30:31 try: 16:30:31 # Attempt to make a normal == check: this might fail for objects 16:30:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:30:31 cache_hit = bool(request_cache_key == cache_key) 16:30:31 except (ValueError, RuntimeError): 16:30:31 # If the comparison raises, use 'is' as fallback. 16:30:31 cache_hit = request_cache_key is cache_key 16:30:31 16:30:31 if cache_hit: 16:30:31 if self.cached_result[2] is not None: 16:30:31 exc, exc_tb = self.cached_result[2] 16:30:31 raise exc.with_traceback(exc_tb) 16:30:31 else: 16:30:31 return self.cached_result[0] 16:30:31 # We have a previous but differently parametrized fixture instance 16:30:31 # so we need to tear it down before creating a new one. 16:30:31 self.finish(request) 16:30:31 assert self.cached_result is None 16:30:31 16:30:31 # Add finalizer to requested fixtures we saved previously. 16:30:31 # We make sure to do this after checking for cached value to avoid 16:30:31 # adding our finalizer multiple times. (#12135) 16:30:31 finalizer = functools.partial(self.finish, request=request) 16:30:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:30:31 parent_fixture.addfinalizer(finalizer) 16:30:31 16:30:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:30:31 # which is executed last. 16:30:31 > assert not self._finalizers 16:30:31 ^^^^^^^^^^^^^^^^^^^^ 16:30:31 E AssertionError 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:30:31 ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ 16:30:31 16:30:31 cls = 16:30:31 func = . at 0x7f478bfa7a60> 16:30:31 when = 'setup' 16:30:31 reraise = (, ) 16:30:31 16:30:31 @classmethod 16:30:31 def from_call( 16:30:31 cls, 16:30:31 func: Callable[[], TResult], 16:30:31 when: Literal["collect", "setup", "call", "teardown"], 16:30:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:30:31 ) -> CallInfo[TResult]: 16:30:31 """Call func, wrapping the result in a CallInfo. 16:30:31 16:30:31 :param func: 16:30:31 The function to call. Called without arguments. 16:30:31 :type func: Callable[[], _pytest.runner.TResult] 16:30:31 :param when: 16:30:31 The phase in which the function is called. 16:30:31 :param reraise: 16:30:31 Exception or exceptions that shall propagate if raised by the 16:30:31 function, instead of being wrapped in the CallInfo. 16:30:31 """ 16:30:31 excinfo = None 16:30:31 instant = timing.Instant() 16:30:31 try: 16:30:31 > result: TResult | None = func() 16:30:31 ^^^^^^ 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:30:31 lambda: runtest_hook(item=item, **kwds), 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:30:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:30:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:30:31 yield 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:30:31 return (yield) 16:30:31 ^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:30:31 item.session._setupstate.setup(item) 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:30:31 col.setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:30:31 super().setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:30:31 self._request._fillfixtures() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:30:31 item.funcargs[argname] = self.getfixturevalue(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:30:31 fixturedef = self._get_active_fixturedef(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:30:31 fixturedef.execute(request=subrequest) 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 16:30:31 self = 16:30:31 request = > 16:30:31 16:30:31 def execute(self, request: SubRequest) -> FixtureValue: 16:30:31 """Return the value of this fixture, executing it if not cached.""" 16:30:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:30:31 # This needs to be done before checking if we have a cached value, since 16:30:31 # if a dependent fixture has their cache invalidated, e.g. due to 16:30:31 # parametrization, they finalize themselves and fixtures depending on it 16:30:31 # (which will likely include this fixture) setting `self.cached_result = None`. 16:30:31 # See #4871 16:30:31 requested_fixtures_that_should_finalize_us = [] 16:30:31 for argname in self.argnames: 16:30:31 fixturedef = request._get_active_fixturedef(argname) 16:30:31 # Saves requested fixtures in a list so we later can add our finalizer 16:30:31 # to them, ensuring that if a requested fixture gets torn down we get torn 16:30:31 # down first. This is generally handled by SetupState, but still currently 16:30:31 # needed when this fixture is not parametrized but depends on a parametrized 16:30:31 # fixture. 16:30:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:30:31 16:30:31 # Check for (and return) cached value/exception. 16:30:31 if self.cached_result is not None: 16:30:31 request_cache_key = self.cache_key(request) 16:30:31 cache_key = self.cached_result[1] 16:30:31 try: 16:30:31 # Attempt to make a normal == check: this might fail for objects 16:30:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:30:31 cache_hit = bool(request_cache_key == cache_key) 16:30:31 except (ValueError, RuntimeError): 16:30:31 # If the comparison raises, use 'is' as fallback. 16:30:31 cache_hit = request_cache_key is cache_key 16:30:31 16:30:31 if cache_hit: 16:30:31 if self.cached_result[2] is not None: 16:30:31 exc, exc_tb = self.cached_result[2] 16:30:31 raise exc.with_traceback(exc_tb) 16:30:31 else: 16:30:31 return self.cached_result[0] 16:30:31 # We have a previous but differently parametrized fixture instance 16:30:31 # so we need to tear it down before creating a new one. 16:30:31 self.finish(request) 16:30:31 assert self.cached_result is None 16:30:31 16:30:31 # Add finalizer to requested fixtures we saved previously. 16:30:31 # We make sure to do this after checking for cached value to avoid 16:30:31 # adding our finalizer multiple times. (#12135) 16:30:31 finalizer = functools.partial(self.finish, request=request) 16:30:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:30:31 parent_fixture.addfinalizer(finalizer) 16:30:31 16:30:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:30:31 # which is executed last. 16:30:31 > assert not self._finalizers 16:30:31 ^^^^^^^^^^^^^^^^^^^^ 16:30:31 E AssertionError 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:30:31 ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ 16:30:31 16:30:31 cls = 16:30:31 func = . at 0x7f478bf67f60> 16:30:31 when = 'setup' 16:30:31 reraise = (, ) 16:30:31 16:30:31 @classmethod 16:30:31 def from_call( 16:30:31 cls, 16:30:31 func: Callable[[], TResult], 16:30:31 when: Literal["collect", "setup", "call", "teardown"], 16:30:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:30:31 ) -> CallInfo[TResult]: 16:30:31 """Call func, wrapping the result in a CallInfo. 16:30:31 16:30:31 :param func: 16:30:31 The function to call. Called without arguments. 16:30:31 :type func: Callable[[], _pytest.runner.TResult] 16:30:31 :param when: 16:30:31 The phase in which the function is called. 16:30:31 :param reraise: 16:30:31 Exception or exceptions that shall propagate if raised by the 16:30:31 function, instead of being wrapped in the CallInfo. 16:30:31 """ 16:30:31 excinfo = None 16:30:31 instant = timing.Instant() 16:30:31 try: 16:30:31 > result: TResult | None = func() 16:30:31 ^^^^^^ 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:30:31 lambda: runtest_hook(item=item, **kwds), 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:30:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:30:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:30:31 yield 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:30:31 return (yield) 16:30:31 ^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:30:31 item.session._setupstate.setup(item) 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:30:31 col.setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:30:31 super().setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:30:31 self._request._fillfixtures() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:30:31 item.funcargs[argname] = self.getfixturevalue(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:30:31 fixturedef = self._get_active_fixturedef(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:30:31 fixturedef.execute(request=subrequest) 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 16:30:31 self = 16:30:31 request = > 16:30:31 16:30:31 def execute(self, request: SubRequest) -> FixtureValue: 16:30:31 """Return the value of this fixture, executing it if not cached.""" 16:30:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:30:31 # This needs to be done before checking if we have a cached value, since 16:30:31 # if a dependent fixture has their cache invalidated, e.g. due to 16:30:31 # parametrization, they finalize themselves and fixtures depending on it 16:30:31 # (which will likely include this fixture) setting `self.cached_result = None`. 16:30:31 # See #4871 16:30:31 requested_fixtures_that_should_finalize_us = [] 16:30:31 for argname in self.argnames: 16:30:31 fixturedef = request._get_active_fixturedef(argname) 16:30:31 # Saves requested fixtures in a list so we later can add our finalizer 16:30:31 # to them, ensuring that if a requested fixture gets torn down we get torn 16:30:31 # down first. This is generally handled by SetupState, but still currently 16:30:31 # needed when this fixture is not parametrized but depends on a parametrized 16:30:31 # fixture. 16:30:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:30:31 16:30:31 # Check for (and return) cached value/exception. 16:30:31 if self.cached_result is not None: 16:30:31 request_cache_key = self.cache_key(request) 16:30:31 cache_key = self.cached_result[1] 16:30:31 try: 16:30:31 # Attempt to make a normal == check: this might fail for objects 16:30:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:30:31 cache_hit = bool(request_cache_key == cache_key) 16:30:31 except (ValueError, RuntimeError): 16:30:31 # If the comparison raises, use 'is' as fallback. 16:30:31 cache_hit = request_cache_key is cache_key 16:30:31 16:30:31 if cache_hit: 16:30:31 if self.cached_result[2] is not None: 16:30:31 exc, exc_tb = self.cached_result[2] 16:30:31 raise exc.with_traceback(exc_tb) 16:30:31 else: 16:30:31 return self.cached_result[0] 16:30:31 # We have a previous but differently parametrized fixture instance 16:30:31 # so we need to tear it down before creating a new one. 16:30:31 self.finish(request) 16:30:31 assert self.cached_result is None 16:30:31 16:30:31 # Add finalizer to requested fixtures we saved previously. 16:30:31 # We make sure to do this after checking for cached value to avoid 16:30:31 # adding our finalizer multiple times. (#12135) 16:30:31 finalizer = functools.partial(self.finish, request=request) 16:30:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:30:31 parent_fixture.addfinalizer(finalizer) 16:30:31 16:30:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:30:31 # which is executed last. 16:30:31 > assert not self._finalizers 16:30:31 ^^^^^^^^^^^^^^^^^^^^ 16:30:31 E AssertionError 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:30:31 ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ 16:30:31 16:30:31 cls = 16:30:31 func = . at 0x7f478bfa7b00> 16:30:31 when = 'setup' 16:30:31 reraise = (, ) 16:30:31 16:30:31 @classmethod 16:30:31 def from_call( 16:30:31 cls, 16:30:31 func: Callable[[], TResult], 16:30:31 when: Literal["collect", "setup", "call", "teardown"], 16:30:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:30:31 ) -> CallInfo[TResult]: 16:30:31 """Call func, wrapping the result in a CallInfo. 16:30:31 16:30:31 :param func: 16:30:31 The function to call. Called without arguments. 16:30:31 :type func: Callable[[], _pytest.runner.TResult] 16:30:31 :param when: 16:30:31 The phase in which the function is called. 16:30:31 :param reraise: 16:30:31 Exception or exceptions that shall propagate if raised by the 16:30:31 function, instead of being wrapped in the CallInfo. 16:30:31 """ 16:30:31 excinfo = None 16:30:31 instant = timing.Instant() 16:30:31 try: 16:30:31 > result: TResult | None = func() 16:30:31 ^^^^^^ 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:30:31 lambda: runtest_hook(item=item, **kwds), 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:30:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:30:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:30:31 yield 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:30:31 return (yield) 16:30:31 ^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:30:31 item.session._setupstate.setup(item) 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:30:31 col.setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:30:31 super().setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:30:31 self._request._fillfixtures() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:30:31 item.funcargs[argname] = self.getfixturevalue(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:30:31 fixturedef = self._get_active_fixturedef(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:30:31 fixturedef.execute(request=subrequest) 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 16:30:31 self = 16:30:31 request = > 16:30:31 16:30:31 def execute(self, request: SubRequest) -> FixtureValue: 16:30:31 """Return the value of this fixture, executing it if not cached.""" 16:30:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:30:31 # This needs to be done before checking if we have a cached value, since 16:30:31 # if a dependent fixture has their cache invalidated, e.g. due to 16:30:31 # parametrization, they finalize themselves and fixtures depending on it 16:30:31 # (which will likely include this fixture) setting `self.cached_result = None`. 16:30:31 # See #4871 16:30:31 requested_fixtures_that_should_finalize_us = [] 16:30:31 for argname in self.argnames: 16:30:31 fixturedef = request._get_active_fixturedef(argname) 16:30:31 # Saves requested fixtures in a list so we later can add our finalizer 16:30:31 # to them, ensuring that if a requested fixture gets torn down we get torn 16:30:31 # down first. This is generally handled by SetupState, but still currently 16:30:31 # needed when this fixture is not parametrized but depends on a parametrized 16:30:31 # fixture. 16:30:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:30:31 16:30:31 # Check for (and return) cached value/exception. 16:30:31 if self.cached_result is not None: 16:30:31 request_cache_key = self.cache_key(request) 16:30:31 cache_key = self.cached_result[1] 16:30:31 try: 16:30:31 # Attempt to make a normal == check: this might fail for objects 16:30:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:30:31 cache_hit = bool(request_cache_key == cache_key) 16:30:31 except (ValueError, RuntimeError): 16:30:31 # If the comparison raises, use 'is' as fallback. 16:30:31 cache_hit = request_cache_key is cache_key 16:30:31 16:30:31 if cache_hit: 16:30:31 if self.cached_result[2] is not None: 16:30:31 exc, exc_tb = self.cached_result[2] 16:30:31 raise exc.with_traceback(exc_tb) 16:30:31 else: 16:30:31 return self.cached_result[0] 16:30:31 # We have a previous but differently parametrized fixture instance 16:30:31 # so we need to tear it down before creating a new one. 16:30:31 self.finish(request) 16:30:31 assert self.cached_result is None 16:30:31 16:30:31 # Add finalizer to requested fixtures we saved previously. 16:30:31 # We make sure to do this after checking for cached value to avoid 16:30:31 # adding our finalizer multiple times. (#12135) 16:30:31 finalizer = functools.partial(self.finish, request=request) 16:30:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:30:31 parent_fixture.addfinalizer(finalizer) 16:30:31 16:30:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:30:31 # which is executed last. 16:30:31 > assert not self._finalizers 16:30:31 ^^^^^^^^^^^^^^^^^^^^ 16:30:31 E AssertionError 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:30:31 _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ 16:30:31 16:30:31 cls = 16:30:31 func = . at 0x7f478bfa7380> 16:30:31 when = 'setup' 16:30:31 reraise = (, ) 16:30:31 16:30:31 @classmethod 16:30:31 def from_call( 16:30:31 cls, 16:30:31 func: Callable[[], TResult], 16:30:31 when: Literal["collect", "setup", "call", "teardown"], 16:30:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:30:31 ) -> CallInfo[TResult]: 16:30:31 """Call func, wrapping the result in a CallInfo. 16:30:31 16:30:31 :param func: 16:30:31 The function to call. Called without arguments. 16:30:31 :type func: Callable[[], _pytest.runner.TResult] 16:30:31 :param when: 16:30:31 The phase in which the function is called. 16:30:31 :param reraise: 16:30:31 Exception or exceptions that shall propagate if raised by the 16:30:31 function, instead of being wrapped in the CallInfo. 16:30:31 """ 16:30:31 excinfo = None 16:30:31 instant = timing.Instant() 16:30:31 try: 16:30:31 > result: TResult | None = func() 16:30:31 ^^^^^^ 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:30:31 lambda: runtest_hook(item=item, **kwds), 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:30:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:30:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:30:31 yield 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:30:31 return (yield) 16:30:31 ^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:30:31 item.session._setupstate.setup(item) 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:30:31 col.setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:30:31 super().setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:30:31 self._request._fillfixtures() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:30:31 item.funcargs[argname] = self.getfixturevalue(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:30:31 fixturedef = self._get_active_fixturedef(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:30:31 fixturedef.execute(request=subrequest) 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 16:30:31 self = 16:30:31 request = > 16:30:31 16:30:31 def execute(self, request: SubRequest) -> FixtureValue: 16:30:31 """Return the value of this fixture, executing it if not cached.""" 16:30:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:30:31 # This needs to be done before checking if we have a cached value, since 16:30:31 # if a dependent fixture has their cache invalidated, e.g. due to 16:30:31 # parametrization, they finalize themselves and fixtures depending on it 16:30:31 # (which will likely include this fixture) setting `self.cached_result = None`. 16:30:31 # See #4871 16:30:31 requested_fixtures_that_should_finalize_us = [] 16:30:31 for argname in self.argnames: 16:30:31 fixturedef = request._get_active_fixturedef(argname) 16:30:31 # Saves requested fixtures in a list so we later can add our finalizer 16:30:31 # to them, ensuring that if a requested fixture gets torn down we get torn 16:30:31 # down first. This is generally handled by SetupState, but still currently 16:30:31 # needed when this fixture is not parametrized but depends on a parametrized 16:30:31 # fixture. 16:30:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:30:31 16:30:31 # Check for (and return) cached value/exception. 16:30:31 if self.cached_result is not None: 16:30:31 request_cache_key = self.cache_key(request) 16:30:31 cache_key = self.cached_result[1] 16:30:31 try: 16:30:31 # Attempt to make a normal == check: this might fail for objects 16:30:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:30:31 cache_hit = bool(request_cache_key == cache_key) 16:30:31 except (ValueError, RuntimeError): 16:30:31 # If the comparison raises, use 'is' as fallback. 16:30:31 cache_hit = request_cache_key is cache_key 16:30:31 16:30:31 if cache_hit: 16:30:31 if self.cached_result[2] is not None: 16:30:31 exc, exc_tb = self.cached_result[2] 16:30:31 raise exc.with_traceback(exc_tb) 16:30:31 else: 16:30:31 return self.cached_result[0] 16:30:31 # We have a previous but differently parametrized fixture instance 16:30:31 # so we need to tear it down before creating a new one. 16:30:31 self.finish(request) 16:30:31 assert self.cached_result is None 16:30:31 16:30:31 # Add finalizer to requested fixtures we saved previously. 16:30:31 # We make sure to do this after checking for cached value to avoid 16:30:31 # adding our finalizer multiple times. (#12135) 16:30:31 finalizer = functools.partial(self.finish, request=request) 16:30:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:30:31 parent_fixture.addfinalizer(finalizer) 16:30:31 16:30:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:30:31 # which is executed last. 16:30:31 > assert not self._finalizers 16:30:31 ^^^^^^^^^^^^^^^^^^^^ 16:30:31 E AssertionError 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:30:31 ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ 16:30:31 16:30:31 cls = 16:30:31 func = . at 0x7f478bf67f60> 16:30:31 when = 'setup' 16:30:31 reraise = (, ) 16:30:31 16:30:31 @classmethod 16:30:31 def from_call( 16:30:31 cls, 16:30:31 func: Callable[[], TResult], 16:30:31 when: Literal["collect", "setup", "call", "teardown"], 16:30:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:30:31 ) -> CallInfo[TResult]: 16:30:31 """Call func, wrapping the result in a CallInfo. 16:30:31 16:30:31 :param func: 16:30:31 The function to call. Called without arguments. 16:30:31 :type func: Callable[[], _pytest.runner.TResult] 16:30:31 :param when: 16:30:31 The phase in which the function is called. 16:30:31 :param reraise: 16:30:31 Exception or exceptions that shall propagate if raised by the 16:30:31 function, instead of being wrapped in the CallInfo. 16:30:31 """ 16:30:31 excinfo = None 16:30:31 instant = timing.Instant() 16:30:31 try: 16:30:31 > result: TResult | None = func() 16:30:31 ^^^^^^ 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:30:31 lambda: runtest_hook(item=item, **kwds), 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:30:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:30:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:30:31 yield 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:30:31 return (yield) 16:30:31 ^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:30:31 item.session._setupstate.setup(item) 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:30:31 col.setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:30:31 super().setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:30:31 self._request._fillfixtures() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:30:31 item.funcargs[argname] = self.getfixturevalue(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:30:31 fixturedef = self._get_active_fixturedef(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:30:31 fixturedef.execute(request=subrequest) 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 16:30:31 self = 16:30:31 request = > 16:30:31 16:30:31 def execute(self, request: SubRequest) -> FixtureValue: 16:30:31 """Return the value of this fixture, executing it if not cached.""" 16:30:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:30:31 # This needs to be done before checking if we have a cached value, since 16:30:31 # if a dependent fixture has their cache invalidated, e.g. due to 16:30:31 # parametrization, they finalize themselves and fixtures depending on it 16:30:31 # (which will likely include this fixture) setting `self.cached_result = None`. 16:30:31 # See #4871 16:30:31 requested_fixtures_that_should_finalize_us = [] 16:30:31 for argname in self.argnames: 16:30:31 fixturedef = request._get_active_fixturedef(argname) 16:30:31 # Saves requested fixtures in a list so we later can add our finalizer 16:30:31 # to them, ensuring that if a requested fixture gets torn down we get torn 16:30:31 # down first. This is generally handled by SetupState, but still currently 16:30:31 # needed when this fixture is not parametrized but depends on a parametrized 16:30:31 # fixture. 16:30:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:30:31 16:30:31 # Check for (and return) cached value/exception. 16:30:31 if self.cached_result is not None: 16:30:31 request_cache_key = self.cache_key(request) 16:30:31 cache_key = self.cached_result[1] 16:30:31 try: 16:30:31 # Attempt to make a normal == check: this might fail for objects 16:30:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:30:31 cache_hit = bool(request_cache_key == cache_key) 16:30:31 except (ValueError, RuntimeError): 16:30:31 # If the comparison raises, use 'is' as fallback. 16:30:31 cache_hit = request_cache_key is cache_key 16:30:31 16:30:31 if cache_hit: 16:30:31 if self.cached_result[2] is not None: 16:30:31 exc, exc_tb = self.cached_result[2] 16:30:31 raise exc.with_traceback(exc_tb) 16:30:31 else: 16:30:31 return self.cached_result[0] 16:30:31 # We have a previous but differently parametrized fixture instance 16:30:31 # so we need to tear it down before creating a new one. 16:30:31 self.finish(request) 16:30:31 assert self.cached_result is None 16:30:31 16:30:31 # Add finalizer to requested fixtures we saved previously. 16:30:31 # We make sure to do this after checking for cached value to avoid 16:30:31 # adding our finalizer multiple times. (#12135) 16:30:31 finalizer = functools.partial(self.finish, request=request) 16:30:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:30:31 parent_fixture.addfinalizer(finalizer) 16:30:31 16:30:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:30:31 # which is executed last. 16:30:31 > assert not self._finalizers 16:30:31 ^^^^^^^^^^^^^^^^^^^^ 16:30:31 E AssertionError 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:30:31 _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ 16:30:31 16:30:31 cls = 16:30:31 func = . at 0x7f478bfa6fc0> 16:30:31 when = 'setup' 16:30:31 reraise = (, ) 16:30:31 16:30:31 @classmethod 16:30:31 def from_call( 16:30:31 cls, 16:30:31 func: Callable[[], TResult], 16:30:31 when: Literal["collect", "setup", "call", "teardown"], 16:30:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:30:31 ) -> CallInfo[TResult]: 16:30:31 """Call func, wrapping the result in a CallInfo. 16:30:31 16:30:31 :param func: 16:30:31 The function to call. Called without arguments. 16:30:31 :type func: Callable[[], _pytest.runner.TResult] 16:30:31 :param when: 16:30:31 The phase in which the function is called. 16:30:31 :param reraise: 16:30:31 Exception or exceptions that shall propagate if raised by the 16:30:31 function, instead of being wrapped in the CallInfo. 16:30:31 """ 16:30:31 excinfo = None 16:30:31 instant = timing.Instant() 16:30:31 try: 16:30:31 > result: TResult | None = func() 16:30:31 ^^^^^^ 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:30:31 lambda: runtest_hook(item=item, **kwds), 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:30:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:30:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:30:31 yield 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:30:31 return (yield) 16:30:31 ^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:30:31 item.session._setupstate.setup(item) 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:30:31 col.setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:30:31 super().setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:30:31 self._request._fillfixtures() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:30:31 item.funcargs[argname] = self.getfixturevalue(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:30:31 fixturedef = self._get_active_fixturedef(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:30:31 fixturedef.execute(request=subrequest) 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 16:30:31 self = 16:30:31 request = > 16:30:31 16:30:31 def execute(self, request: SubRequest) -> FixtureValue: 16:30:31 """Return the value of this fixture, executing it if not cached.""" 16:30:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:30:31 # This needs to be done before checking if we have a cached value, since 16:30:31 # if a dependent fixture has their cache invalidated, e.g. due to 16:30:31 # parametrization, they finalize themselves and fixtures depending on it 16:30:31 # (which will likely include this fixture) setting `self.cached_result = None`. 16:30:31 # See #4871 16:30:31 requested_fixtures_that_should_finalize_us = [] 16:30:31 for argname in self.argnames: 16:30:31 fixturedef = request._get_active_fixturedef(argname) 16:30:31 # Saves requested fixtures in a list so we later can add our finalizer 16:30:31 # to them, ensuring that if a requested fixture gets torn down we get torn 16:30:31 # down first. This is generally handled by SetupState, but still currently 16:30:31 # needed when this fixture is not parametrized but depends on a parametrized 16:30:31 # fixture. 16:30:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:30:31 16:30:31 # Check for (and return) cached value/exception. 16:30:31 if self.cached_result is not None: 16:30:31 request_cache_key = self.cache_key(request) 16:30:31 cache_key = self.cached_result[1] 16:30:31 try: 16:30:31 # Attempt to make a normal == check: this might fail for objects 16:30:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:30:31 cache_hit = bool(request_cache_key == cache_key) 16:30:31 except (ValueError, RuntimeError): 16:30:31 # If the comparison raises, use 'is' as fallback. 16:30:31 cache_hit = request_cache_key is cache_key 16:30:31 16:30:31 if cache_hit: 16:30:31 if self.cached_result[2] is not None: 16:30:31 exc, exc_tb = self.cached_result[2] 16:30:31 raise exc.with_traceback(exc_tb) 16:30:31 else: 16:30:31 return self.cached_result[0] 16:30:31 # We have a previous but differently parametrized fixture instance 16:30:31 # so we need to tear it down before creating a new one. 16:30:31 self.finish(request) 16:30:31 assert self.cached_result is None 16:30:31 16:30:31 # Add finalizer to requested fixtures we saved previously. 16:30:31 # We make sure to do this after checking for cached value to avoid 16:30:31 # adding our finalizer multiple times. (#12135) 16:30:31 finalizer = functools.partial(self.finish, request=request) 16:30:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:30:31 parent_fixture.addfinalizer(finalizer) 16:30:31 16:30:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:30:31 # which is executed last. 16:30:31 > assert not self._finalizers 16:30:31 ^^^^^^^^^^^^^^^^^^^^ 16:30:31 E AssertionError 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:30:31 ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ 16:30:31 16:30:31 cls = 16:30:31 func = . at 0x7f478bfa5da0> 16:30:31 when = 'setup' 16:30:31 reraise = (, ) 16:30:31 16:30:31 @classmethod 16:30:31 def from_call( 16:30:31 cls, 16:30:31 func: Callable[[], TResult], 16:30:31 when: Literal["collect", "setup", "call", "teardown"], 16:30:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:30:31 ) -> CallInfo[TResult]: 16:30:31 """Call func, wrapping the result in a CallInfo. 16:30:31 16:30:31 :param func: 16:30:31 The function to call. Called without arguments. 16:30:31 :type func: Callable[[], _pytest.runner.TResult] 16:30:31 :param when: 16:30:31 The phase in which the function is called. 16:30:31 :param reraise: 16:30:31 Exception or exceptions that shall propagate if raised by the 16:30:31 function, instead of being wrapped in the CallInfo. 16:30:31 """ 16:30:31 excinfo = None 16:30:31 instant = timing.Instant() 16:30:31 try: 16:30:31 > result: TResult | None = func() 16:30:31 ^^^^^^ 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:30:31 lambda: runtest_hook(item=item, **kwds), 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:30:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:30:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:30:31 yield 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:30:31 return (yield) 16:30:31 ^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:30:31 item.session._setupstate.setup(item) 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:30:31 col.setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:30:31 super().setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:30:31 self._request._fillfixtures() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:30:31 item.funcargs[argname] = self.getfixturevalue(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:30:31 fixturedef = self._get_active_fixturedef(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:30:31 fixturedef.execute(request=subrequest) 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 16:30:31 self = 16:30:31 request = > 16:30:31 16:30:31 def execute(self, request: SubRequest) -> FixtureValue: 16:30:31 """Return the value of this fixture, executing it if not cached.""" 16:30:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:30:31 # This needs to be done before checking if we have a cached value, since 16:30:31 # if a dependent fixture has their cache invalidated, e.g. due to 16:30:31 # parametrization, they finalize themselves and fixtures depending on it 16:30:31 # (which will likely include this fixture) setting `self.cached_result = None`. 16:30:31 # See #4871 16:30:31 requested_fixtures_that_should_finalize_us = [] 16:30:31 for argname in self.argnames: 16:30:31 fixturedef = request._get_active_fixturedef(argname) 16:30:31 # Saves requested fixtures in a list so we later can add our finalizer 16:30:31 # to them, ensuring that if a requested fixture gets torn down we get torn 16:30:31 # down first. This is generally handled by SetupState, but still currently 16:30:31 # needed when this fixture is not parametrized but depends on a parametrized 16:30:31 # fixture. 16:30:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:30:31 16:30:31 # Check for (and return) cached value/exception. 16:30:31 if self.cached_result is not None: 16:30:31 request_cache_key = self.cache_key(request) 16:30:31 cache_key = self.cached_result[1] 16:30:31 try: 16:30:31 # Attempt to make a normal == check: this might fail for objects 16:30:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:30:31 cache_hit = bool(request_cache_key == cache_key) 16:30:31 except (ValueError, RuntimeError): 16:30:31 # If the comparison raises, use 'is' as fallback. 16:30:31 cache_hit = request_cache_key is cache_key 16:30:31 16:30:31 if cache_hit: 16:30:31 if self.cached_result[2] is not None: 16:30:31 exc, exc_tb = self.cached_result[2] 16:30:31 raise exc.with_traceback(exc_tb) 16:30:31 else: 16:30:31 return self.cached_result[0] 16:30:31 # We have a previous but differently parametrized fixture instance 16:30:31 # so we need to tear it down before creating a new one. 16:30:31 self.finish(request) 16:30:31 assert self.cached_result is None 16:30:31 16:30:31 # Add finalizer to requested fixtures we saved previously. 16:30:31 # We make sure to do this after checking for cached value to avoid 16:30:31 # adding our finalizer multiple times. (#12135) 16:30:31 finalizer = functools.partial(self.finish, request=request) 16:30:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:30:31 parent_fixture.addfinalizer(finalizer) 16:30:31 16:30:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:30:31 # which is executed last. 16:30:31 > assert not self._finalizers 16:30:31 ^^^^^^^^^^^^^^^^^^^^ 16:30:31 E AssertionError 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:30:31 ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ 16:30:31 16:30:31 cls = 16:30:31 func = . at 0x7f478bfa7d80> 16:30:31 when = 'setup' 16:30:31 reraise = (, ) 16:30:31 16:30:31 @classmethod 16:30:31 def from_call( 16:30:31 cls, 16:30:31 func: Callable[[], TResult], 16:30:31 when: Literal["collect", "setup", "call", "teardown"], 16:30:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:30:31 ) -> CallInfo[TResult]: 16:30:31 """Call func, wrapping the result in a CallInfo. 16:30:31 16:30:31 :param func: 16:30:31 The function to call. Called without arguments. 16:30:31 :type func: Callable[[], _pytest.runner.TResult] 16:30:31 :param when: 16:30:31 The phase in which the function is called. 16:30:31 :param reraise: 16:30:31 Exception or exceptions that shall propagate if raised by the 16:30:31 function, instead of being wrapped in the CallInfo. 16:30:31 """ 16:30:31 excinfo = None 16:30:31 instant = timing.Instant() 16:30:31 try: 16:30:31 > result: TResult | None = func() 16:30:31 ^^^^^^ 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:30:31 lambda: runtest_hook(item=item, **kwds), 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:30:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:30:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:30:31 yield 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:30:31 return (yield) 16:30:31 ^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:30:31 item.session._setupstate.setup(item) 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:30:31 col.setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:30:31 super().setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:30:31 self._request._fillfixtures() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:30:31 item.funcargs[argname] = self.getfixturevalue(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:30:31 fixturedef = self._get_active_fixturedef(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:30:31 fixturedef.execute(request=subrequest) 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 16:30:31 self = 16:30:31 request = > 16:30:31 16:30:31 def execute(self, request: SubRequest) -> FixtureValue: 16:30:31 """Return the value of this fixture, executing it if not cached.""" 16:30:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:30:31 # This needs to be done before checking if we have a cached value, since 16:30:31 # if a dependent fixture has their cache invalidated, e.g. due to 16:30:31 # parametrization, they finalize themselves and fixtures depending on it 16:30:31 # (which will likely include this fixture) setting `self.cached_result = None`. 16:30:31 # See #4871 16:30:31 requested_fixtures_that_should_finalize_us = [] 16:30:31 for argname in self.argnames: 16:30:31 fixturedef = request._get_active_fixturedef(argname) 16:30:31 # Saves requested fixtures in a list so we later can add our finalizer 16:30:31 # to them, ensuring that if a requested fixture gets torn down we get torn 16:30:31 # down first. This is generally handled by SetupState, but still currently 16:30:31 # needed when this fixture is not parametrized but depends on a parametrized 16:30:31 # fixture. 16:30:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:30:31 16:30:31 # Check for (and return) cached value/exception. 16:30:31 if self.cached_result is not None: 16:30:31 request_cache_key = self.cache_key(request) 16:30:31 cache_key = self.cached_result[1] 16:30:31 try: 16:30:31 # Attempt to make a normal == check: this might fail for objects 16:30:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:30:31 cache_hit = bool(request_cache_key == cache_key) 16:30:31 except (ValueError, RuntimeError): 16:30:31 # If the comparison raises, use 'is' as fallback. 16:30:31 cache_hit = request_cache_key is cache_key 16:30:31 16:30:31 if cache_hit: 16:30:31 if self.cached_result[2] is not None: 16:30:31 exc, exc_tb = self.cached_result[2] 16:30:31 raise exc.with_traceback(exc_tb) 16:30:31 else: 16:30:31 return self.cached_result[0] 16:30:31 # We have a previous but differently parametrized fixture instance 16:30:31 # so we need to tear it down before creating a new one. 16:30:31 self.finish(request) 16:30:31 assert self.cached_result is None 16:30:31 16:30:31 # Add finalizer to requested fixtures we saved previously. 16:30:31 # We make sure to do this after checking for cached value to avoid 16:30:31 # adding our finalizer multiple times. (#12135) 16:30:31 finalizer = functools.partial(self.finish, request=request) 16:30:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:30:31 parent_fixture.addfinalizer(finalizer) 16:30:31 16:30:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:30:31 # which is executed last. 16:30:31 > assert not self._finalizers 16:30:31 ^^^^^^^^^^^^^^^^^^^^ 16:30:31 E AssertionError 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:30:31 ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ 16:30:31 16:30:31 cls = 16:30:31 func = . at 0x7f478bfa7b00> 16:30:31 when = 'setup' 16:30:31 reraise = (, ) 16:30:31 16:30:31 @classmethod 16:30:31 def from_call( 16:30:31 cls, 16:30:31 func: Callable[[], TResult], 16:30:31 when: Literal["collect", "setup", "call", "teardown"], 16:30:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:30:31 ) -> CallInfo[TResult]: 16:30:31 """Call func, wrapping the result in a CallInfo. 16:30:31 16:30:31 :param func: 16:30:31 The function to call. Called without arguments. 16:30:31 :type func: Callable[[], _pytest.runner.TResult] 16:30:31 :param when: 16:30:31 The phase in which the function is called. 16:30:31 :param reraise: 16:30:31 Exception or exceptions that shall propagate if raised by the 16:30:31 function, instead of being wrapped in the CallInfo. 16:30:31 """ 16:30:31 excinfo = None 16:30:31 instant = timing.Instant() 16:30:31 try: 16:30:31 > result: TResult | None = func() 16:30:31 ^^^^^^ 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:30:31 lambda: runtest_hook(item=item, **kwds), 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:30:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:30:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:30:31 yield 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:30:31 return (yield) 16:30:31 ^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:30:31 item.session._setupstate.setup(item) 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:30:31 col.setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:30:31 super().setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:30:31 self._request._fillfixtures() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:30:31 item.funcargs[argname] = self.getfixturevalue(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:30:31 fixturedef = self._get_active_fixturedef(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:30:31 fixturedef.execute(request=subrequest) 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 16:30:31 self = 16:30:31 request = > 16:30:31 16:30:31 def execute(self, request: SubRequest) -> FixtureValue: 16:30:31 """Return the value of this fixture, executing it if not cached.""" 16:30:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:30:31 # This needs to be done before checking if we have a cached value, since 16:30:31 # if a dependent fixture has their cache invalidated, e.g. due to 16:30:31 # parametrization, they finalize themselves and fixtures depending on it 16:30:31 # (which will likely include this fixture) setting `self.cached_result = None`. 16:30:31 # See #4871 16:30:31 requested_fixtures_that_should_finalize_us = [] 16:30:31 for argname in self.argnames: 16:30:31 fixturedef = request._get_active_fixturedef(argname) 16:30:31 # Saves requested fixtures in a list so we later can add our finalizer 16:30:31 # to them, ensuring that if a requested fixture gets torn down we get torn 16:30:31 # down first. This is generally handled by SetupState, but still currently 16:30:31 # needed when this fixture is not parametrized but depends on a parametrized 16:30:31 # fixture. 16:30:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:30:31 16:30:31 # Check for (and return) cached value/exception. 16:30:31 if self.cached_result is not None: 16:30:31 request_cache_key = self.cache_key(request) 16:30:31 cache_key = self.cached_result[1] 16:30:31 try: 16:30:31 # Attempt to make a normal == check: this might fail for objects 16:30:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:30:31 cache_hit = bool(request_cache_key == cache_key) 16:30:31 except (ValueError, RuntimeError): 16:30:31 # If the comparison raises, use 'is' as fallback. 16:30:31 cache_hit = request_cache_key is cache_key 16:30:31 16:30:31 if cache_hit: 16:30:31 if self.cached_result[2] is not None: 16:30:31 exc, exc_tb = self.cached_result[2] 16:30:31 raise exc.with_traceback(exc_tb) 16:30:31 else: 16:30:31 return self.cached_result[0] 16:30:31 # We have a previous but differently parametrized fixture instance 16:30:31 # so we need to tear it down before creating a new one. 16:30:31 self.finish(request) 16:30:31 assert self.cached_result is None 16:30:31 16:30:31 # Add finalizer to requested fixtures we saved previously. 16:30:31 # We make sure to do this after checking for cached value to avoid 16:30:31 # adding our finalizer multiple times. (#12135) 16:30:31 finalizer = functools.partial(self.finish, request=request) 16:30:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:30:31 parent_fixture.addfinalizer(finalizer) 16:30:31 16:30:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:30:31 # which is executed last. 16:30:31 > assert not self._finalizers 16:30:31 ^^^^^^^^^^^^^^^^^^^^ 16:30:31 E AssertionError 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:30:31 _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ 16:30:31 16:30:31 cls = 16:30:31 func = . at 0x7f478bf67e20> 16:30:31 when = 'setup' 16:30:31 reraise = (, ) 16:30:31 16:30:31 @classmethod 16:30:31 def from_call( 16:30:31 cls, 16:30:31 func: Callable[[], TResult], 16:30:31 when: Literal["collect", "setup", "call", "teardown"], 16:30:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:30:31 ) -> CallInfo[TResult]: 16:30:31 """Call func, wrapping the result in a CallInfo. 16:30:31 16:30:31 :param func: 16:30:31 The function to call. Called without arguments. 16:30:31 :type func: Callable[[], _pytest.runner.TResult] 16:30:31 :param when: 16:30:31 The phase in which the function is called. 16:30:31 :param reraise: 16:30:31 Exception or exceptions that shall propagate if raised by the 16:30:31 function, instead of being wrapped in the CallInfo. 16:30:31 """ 16:30:31 excinfo = None 16:30:31 instant = timing.Instant() 16:30:31 try: 16:30:31 > result: TResult | None = func() 16:30:31 ^^^^^^ 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:30:31 lambda: runtest_hook(item=item, **kwds), 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:30:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:30:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:30:31 yield 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:30:31 return (yield) 16:30:31 ^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:30:31 item.session._setupstate.setup(item) 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:30:31 col.setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:30:31 super().setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:30:31 self._request._fillfixtures() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:30:31 item.funcargs[argname] = self.getfixturevalue(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:30:31 fixturedef = self._get_active_fixturedef(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:30:31 fixturedef.execute(request=subrequest) 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 16:30:31 self = 16:30:31 request = > 16:30:31 16:30:31 def execute(self, request: SubRequest) -> FixtureValue: 16:30:31 """Return the value of this fixture, executing it if not cached.""" 16:30:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:30:31 # This needs to be done before checking if we have a cached value, since 16:30:31 # if a dependent fixture has their cache invalidated, e.g. due to 16:30:31 # parametrization, they finalize themselves and fixtures depending on it 16:30:31 # (which will likely include this fixture) setting `self.cached_result = None`. 16:30:31 # See #4871 16:30:31 requested_fixtures_that_should_finalize_us = [] 16:30:31 for argname in self.argnames: 16:30:31 fixturedef = request._get_active_fixturedef(argname) 16:30:31 # Saves requested fixtures in a list so we later can add our finalizer 16:30:31 # to them, ensuring that if a requested fixture gets torn down we get torn 16:30:31 # down first. This is generally handled by SetupState, but still currently 16:30:31 # needed when this fixture is not parametrized but depends on a parametrized 16:30:31 # fixture. 16:30:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:30:31 16:30:31 # Check for (and return) cached value/exception. 16:30:31 if self.cached_result is not None: 16:30:31 request_cache_key = self.cache_key(request) 16:30:31 cache_key = self.cached_result[1] 16:30:31 try: 16:30:31 # Attempt to make a normal == check: this might fail for objects 16:30:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:30:31 cache_hit = bool(request_cache_key == cache_key) 16:30:31 except (ValueError, RuntimeError): 16:30:31 # If the comparison raises, use 'is' as fallback. 16:30:31 cache_hit = request_cache_key is cache_key 16:30:31 16:30:31 if cache_hit: 16:30:31 if self.cached_result[2] is not None: 16:30:31 exc, exc_tb = self.cached_result[2] 16:30:31 raise exc.with_traceback(exc_tb) 16:30:31 else: 16:30:31 return self.cached_result[0] 16:30:31 # We have a previous but differently parametrized fixture instance 16:30:31 # so we need to tear it down before creating a new one. 16:30:31 self.finish(request) 16:30:31 assert self.cached_result is None 16:30:31 16:30:31 # Add finalizer to requested fixtures we saved previously. 16:30:31 # We make sure to do this after checking for cached value to avoid 16:30:31 # adding our finalizer multiple times. (#12135) 16:30:31 finalizer = functools.partial(self.finish, request=request) 16:30:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:30:31 parent_fixture.addfinalizer(finalizer) 16:30:31 16:30:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:30:31 # which is executed last. 16:30:31 > assert not self._finalizers 16:30:31 ^^^^^^^^^^^^^^^^^^^^ 16:30:31 E AssertionError 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:30:31 _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ 16:30:31 16:30:31 cls = 16:30:31 func = . at 0x7f478bf67ce0> 16:30:31 when = 'setup' 16:30:31 reraise = (, ) 16:30:31 16:30:31 @classmethod 16:30:31 def from_call( 16:30:31 cls, 16:30:31 func: Callable[[], TResult], 16:30:31 when: Literal["collect", "setup", "call", "teardown"], 16:30:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:30:31 ) -> CallInfo[TResult]: 16:30:31 """Call func, wrapping the result in a CallInfo. 16:30:31 16:30:31 :param func: 16:30:31 The function to call. Called without arguments. 16:30:31 :type func: Callable[[], _pytest.runner.TResult] 16:30:31 :param when: 16:30:31 The phase in which the function is called. 16:30:31 :param reraise: 16:30:31 Exception or exceptions that shall propagate if raised by the 16:30:31 function, instead of being wrapped in the CallInfo. 16:30:31 """ 16:30:31 excinfo = None 16:30:31 instant = timing.Instant() 16:30:31 try: 16:30:31 > result: TResult | None = func() 16:30:31 ^^^^^^ 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:30:31 lambda: runtest_hook(item=item, **kwds), 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:30:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:30:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:30:31 yield 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:30:31 return (yield) 16:30:31 ^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:30:31 item.session._setupstate.setup(item) 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:30:31 col.setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:30:31 super().setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:30:31 self._request._fillfixtures() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:30:31 item.funcargs[argname] = self.getfixturevalue(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:30:31 fixturedef = self._get_active_fixturedef(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:30:31 fixturedef.execute(request=subrequest) 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 16:30:31 self = 16:30:31 request = > 16:30:31 16:30:31 def execute(self, request: SubRequest) -> FixtureValue: 16:30:31 """Return the value of this fixture, executing it if not cached.""" 16:30:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:30:31 # This needs to be done before checking if we have a cached value, since 16:30:31 # if a dependent fixture has their cache invalidated, e.g. due to 16:30:31 # parametrization, they finalize themselves and fixtures depending on it 16:30:31 # (which will likely include this fixture) setting `self.cached_result = None`. 16:30:31 # See #4871 16:30:31 requested_fixtures_that_should_finalize_us = [] 16:30:31 for argname in self.argnames: 16:30:31 fixturedef = request._get_active_fixturedef(argname) 16:30:31 # Saves requested fixtures in a list so we later can add our finalizer 16:30:31 # to them, ensuring that if a requested fixture gets torn down we get torn 16:30:31 # down first. This is generally handled by SetupState, but still currently 16:30:31 # needed when this fixture is not parametrized but depends on a parametrized 16:30:31 # fixture. 16:30:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:30:31 16:30:31 # Check for (and return) cached value/exception. 16:30:31 if self.cached_result is not None: 16:30:31 request_cache_key = self.cache_key(request) 16:30:31 cache_key = self.cached_result[1] 16:30:31 try: 16:30:31 # Attempt to make a normal == check: this might fail for objects 16:30:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:30:31 cache_hit = bool(request_cache_key == cache_key) 16:30:31 except (ValueError, RuntimeError): 16:30:31 # If the comparison raises, use 'is' as fallback. 16:30:31 cache_hit = request_cache_key is cache_key 16:30:31 16:30:31 if cache_hit: 16:30:31 if self.cached_result[2] is not None: 16:30:31 exc, exc_tb = self.cached_result[2] 16:30:31 raise exc.with_traceback(exc_tb) 16:30:31 else: 16:30:31 return self.cached_result[0] 16:30:31 # We have a previous but differently parametrized fixture instance 16:30:31 # so we need to tear it down before creating a new one. 16:30:31 self.finish(request) 16:30:31 assert self.cached_result is None 16:30:31 16:30:31 # Add finalizer to requested fixtures we saved previously. 16:30:31 # We make sure to do this after checking for cached value to avoid 16:30:31 # adding our finalizer multiple times. (#12135) 16:30:31 finalizer = functools.partial(self.finish, request=request) 16:30:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:30:31 parent_fixture.addfinalizer(finalizer) 16:30:31 16:30:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:30:31 # which is executed last. 16:30:31 > assert not self._finalizers 16:30:31 ^^^^^^^^^^^^^^^^^^^^ 16:30:31 E AssertionError 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:30:31 _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ 16:30:31 16:30:31 cls = 16:30:31 func = . at 0x7f478bfa7c40> 16:30:31 when = 'setup' 16:30:31 reraise = (, ) 16:30:31 16:30:31 @classmethod 16:30:31 def from_call( 16:30:31 cls, 16:30:31 func: Callable[[], TResult], 16:30:31 when: Literal["collect", "setup", "call", "teardown"], 16:30:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:30:31 ) -> CallInfo[TResult]: 16:30:31 """Call func, wrapping the result in a CallInfo. 16:30:31 16:30:31 :param func: 16:30:31 The function to call. Called without arguments. 16:30:31 :type func: Callable[[], _pytest.runner.TResult] 16:30:31 :param when: 16:30:31 The phase in which the function is called. 16:30:31 :param reraise: 16:30:31 Exception or exceptions that shall propagate if raised by the 16:30:31 function, instead of being wrapped in the CallInfo. 16:30:31 """ 16:30:31 excinfo = None 16:30:31 instant = timing.Instant() 16:30:31 try: 16:30:31 > result: TResult | None = func() 16:30:31 ^^^^^^ 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:30:31 lambda: runtest_hook(item=item, **kwds), 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:30:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:30:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:30:31 yield 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:30:31 return (yield) 16:30:31 ^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:30:31 item.session._setupstate.setup(item) 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:30:31 col.setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:30:31 super().setup() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:30:31 self._request._fillfixtures() 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:30:31 item.funcargs[argname] = self.getfixturevalue(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:30:31 fixturedef = self._get_active_fixturedef(argname) 16:30:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:30:31 fixturedef.execute(request=subrequest) 16:30:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:30:31 16:30:31 self = 16:30:31 request = > 16:30:31 16:30:31 def execute(self, request: SubRequest) -> FixtureValue: 16:30:31 """Return the value of this fixture, executing it if not cached.""" 16:30:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:30:31 # This needs to be done before checking if we have a cached value, since 16:30:31 # if a dependent fixture has their cache invalidated, e.g. due to 16:30:31 # parametrization, they finalize themselves and fixtures depending on it 16:30:31 # (which will likely include this fixture) setting `self.cached_result = None`. 16:30:31 # See #4871 16:30:31 requested_fixtures_that_should_finalize_us = [] 16:30:31 for argname in self.argnames: 16:30:31 fixturedef = request._get_active_fixturedef(argname) 16:30:31 # Saves requested fixtures in a list so we later can add our finalizer 16:30:31 # to them, ensuring that if a requested fixture gets torn down we get torn 16:30:31 # down first. This is generally handled by SetupState, but still currently 16:30:31 # needed when this fixture is not parametrized but depends on a parametrized 16:30:31 # fixture. 16:30:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:30:31 16:30:31 # Check for (and return) cached value/exception. 16:30:31 if self.cached_result is not None: 16:30:31 request_cache_key = self.cache_key(request) 16:30:31 cache_key = self.cached_result[1] 16:30:31 try: 16:30:31 # Attempt to make a normal == check: this might fail for objects 16:30:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:30:31 cache_hit = bool(request_cache_key == cache_key) 16:30:31 except (ValueError, RuntimeError): 16:30:31 # If the comparison raises, use 'is' as fallback. 16:30:31 cache_hit = request_cache_key is cache_key 16:30:31 16:30:31 if cache_hit: 16:30:31 if self.cached_result[2] is not None: 16:30:31 exc, exc_tb = self.cached_result[2] 16:30:31 raise exc.with_traceback(exc_tb) 16:30:31 else: 16:30:31 return self.cached_result[0] 16:30:31 # We have a previous but differently parametrized fixture instance 16:30:31 # so we need to tear it down before creating a new one. 16:30:31 self.finish(request) 16:30:31 assert self.cached_result is None 16:30:31 16:30:31 # Add finalizer to requested fixtures we saved previously. 16:30:31 # We make sure to do this after checking for cached value to avoid 16:30:31 # adding our finalizer multiple times. (#12135) 16:30:31 finalizer = functools.partial(self.finish, request=request) 16:30:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:30:31 parent_fixture.addfinalizer(finalizer) 16:30:31 16:30:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:30:31 # which is executed last. 16:30:31 > assert not self._finalizers 16:30:31 ^^^^^^^^^^^^^^^^^^^^ 16:30:31 E AssertionError 16:30:31 16:30:31 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:30:31 =========================== short test summary info ============================ 16:30:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping 16:30:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi 16:30:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId 16:30:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId 16:30:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi 16:30:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi 16:30:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni 16:30:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId 16:30:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId 16:30:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni 16:30:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni 16:30:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology 16:30:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId 16:30:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation 16:30:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation 16:30:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation 16:30:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation 16:30:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion 16:30:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link 16:30:31 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 16:30:31 20 errors in 124.10s (0:02:04) 16:30:31 testsPCE: exit 1 (124.41 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh pce pid=4696 16:30:31 testsPCE: FAIL ✖ in 2 minutes 52.62 seconds 16:30:31 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:30:31 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:30:38 tests_tapi: freeze> python -m pip freeze --all 16:30:38 tests121: freeze> python -m pip freeze --all 16:30:39 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:30:39 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh tapi 16:30:39 using environment variables from ./karaf221.env 16:30:39 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 16:30:39 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:30:39 tests121: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh 1.2.1 16:30:39 using environment variables from ./karaf121.env 16:30:39 pytest -q transportpce_tests/1.2.1/test01_portmapping.py 16:32:19 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 16:32:23 ==================================== ERRORS ==================================== 16:32:23 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 16:32:23 16:32:23 cls = 16:32:23 16:32:23 @classmethod 16:32:23 def setUpClass(cls): 16:32:23 > cls.processes = test_utils.start_tpce() 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 16:32:23 transportpce_tests/1.2.1/test01_portmapping.py:33: 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 16:32:23 def start_tpce(): 16:32:23 if 'NO_ODL_STARTUP' in os.environ: 16:32:23 print('No OpenDaylight instance to start!') 16:32:23 return [] 16:32:23 print('starting OpenDaylight...') 16:32:23 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 16:32:23 process = start_lighty() 16:32:23 else: 16:32:23 process = start_karaf() 16:32:23 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 16:32:23 print('OpenDaylight started !') 16:32:23 else: 16:32:23 print('OpenDaylight failed to start !') 16:32:23 shutdown_process(process) 16:32:23 for pid in process_list: 16:32:23 shutdown_process(pid) 16:32:23 > sys.exit(1) 16:32:23 E SystemExit: 1 16:32:23 16:32:23 transportpce_tests/common/test_utils.py:233: SystemExit 16:32:23 ---------------------------- Captured stdout setup ----------------------------- 16:32:23 starting OpenDaylight... 16:32:23 starting KARAF (karaf121) TransportPCE build... 16:32:23 Pattern not found after 100 seconds! OpenDaylight failed to start ! 16:32:23 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 16:32:23 16:32:23 cls = 16:32:23 func = . at 0x7f3b4ce71760> 16:32:23 when = 'setup' 16:32:23 reraise = (, ) 16:32:23 16:32:23 @classmethod 16:32:23 def from_call( 16:32:23 cls, 16:32:23 func: Callable[[], TResult], 16:32:23 when: Literal["collect", "setup", "call", "teardown"], 16:32:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:23 ) -> CallInfo[TResult]: 16:32:23 """Call func, wrapping the result in a CallInfo. 16:32:23 16:32:23 :param func: 16:32:23 The function to call. Called without arguments. 16:32:23 :type func: Callable[[], _pytest.runner.TResult] 16:32:23 :param when: 16:32:23 The phase in which the function is called. 16:32:23 :param reraise: 16:32:23 Exception or exceptions that shall propagate if raised by the 16:32:23 function, instead of being wrapped in the CallInfo. 16:32:23 """ 16:32:23 excinfo = None 16:32:23 instant = timing.Instant() 16:32:23 try: 16:32:23 > result: TResult | None = func() 16:32:23 ^^^^^^ 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:23 lambda: runtest_hook(item=item, **kwds), 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:23 yield 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:23 return (yield) 16:32:23 ^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:23 item.session._setupstate.setup(item) 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:23 col.setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:23 super().setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:23 self._request._fillfixtures() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:23 fixturedef = self._get_active_fixturedef(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:23 fixturedef.execute(request=subrequest) 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 16:32:23 self = 16:32:23 request = > 16:32:23 16:32:23 def execute(self, request: SubRequest) -> FixtureValue: 16:32:23 """Return the value of this fixture, executing it if not cached.""" 16:32:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:23 # This needs to be done before checking if we have a cached value, since 16:32:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:23 # parametrization, they finalize themselves and fixtures depending on it 16:32:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:23 # See #4871 16:32:23 requested_fixtures_that_should_finalize_us = [] 16:32:23 for argname in self.argnames: 16:32:23 fixturedef = request._get_active_fixturedef(argname) 16:32:23 # Saves requested fixtures in a list so we later can add our finalizer 16:32:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:23 # down first. This is generally handled by SetupState, but still currently 16:32:23 # needed when this fixture is not parametrized but depends on a parametrized 16:32:23 # fixture. 16:32:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:23 16:32:23 # Check for (and return) cached value/exception. 16:32:23 if self.cached_result is not None: 16:32:23 request_cache_key = self.cache_key(request) 16:32:23 cache_key = self.cached_result[1] 16:32:23 try: 16:32:23 # Attempt to make a normal == check: this might fail for objects 16:32:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:23 cache_hit = bool(request_cache_key == cache_key) 16:32:23 except (ValueError, RuntimeError): 16:32:23 # If the comparison raises, use 'is' as fallback. 16:32:23 cache_hit = request_cache_key is cache_key 16:32:23 16:32:23 if cache_hit: 16:32:23 if self.cached_result[2] is not None: 16:32:23 exc, exc_tb = self.cached_result[2] 16:32:23 raise exc.with_traceback(exc_tb) 16:32:23 else: 16:32:23 return self.cached_result[0] 16:32:23 # We have a previous but differently parametrized fixture instance 16:32:23 # so we need to tear it down before creating a new one. 16:32:23 self.finish(request) 16:32:23 assert self.cached_result is None 16:32:23 16:32:23 # Add finalizer to requested fixtures we saved previously. 16:32:23 # We make sure to do this after checking for cached value to avoid 16:32:23 # adding our finalizer multiple times. (#12135) 16:32:23 finalizer = functools.partial(self.finish, request=request) 16:32:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:23 parent_fixture.addfinalizer(finalizer) 16:32:23 16:32:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:23 # which is executed last. 16:32:23 > assert not self._finalizers 16:32:23 ^^^^^^^^^^^^^^^^^^^^ 16:32:23 E AssertionError 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:23 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 16:32:23 16:32:23 cls = 16:32:23 func = . at 0x7f3b4cea3560> 16:32:23 when = 'setup' 16:32:23 reraise = (, ) 16:32:23 16:32:23 @classmethod 16:32:23 def from_call( 16:32:23 cls, 16:32:23 func: Callable[[], TResult], 16:32:23 when: Literal["collect", "setup", "call", "teardown"], 16:32:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:23 ) -> CallInfo[TResult]: 16:32:23 """Call func, wrapping the result in a CallInfo. 16:32:23 16:32:23 :param func: 16:32:23 The function to call. Called without arguments. 16:32:23 :type func: Callable[[], _pytest.runner.TResult] 16:32:23 :param when: 16:32:23 The phase in which the function is called. 16:32:23 :param reraise: 16:32:23 Exception or exceptions that shall propagate if raised by the 16:32:23 function, instead of being wrapped in the CallInfo. 16:32:23 """ 16:32:23 excinfo = None 16:32:23 instant = timing.Instant() 16:32:23 try: 16:32:23 > result: TResult | None = func() 16:32:23 ^^^^^^ 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:23 lambda: runtest_hook(item=item, **kwds), 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:23 yield 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:23 return (yield) 16:32:23 ^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:23 item.session._setupstate.setup(item) 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:23 col.setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:23 super().setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:23 self._request._fillfixtures() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:23 fixturedef = self._get_active_fixturedef(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:23 fixturedef.execute(request=subrequest) 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 16:32:23 self = 16:32:23 request = > 16:32:23 16:32:23 def execute(self, request: SubRequest) -> FixtureValue: 16:32:23 """Return the value of this fixture, executing it if not cached.""" 16:32:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:23 # This needs to be done before checking if we have a cached value, since 16:32:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:23 # parametrization, they finalize themselves and fixtures depending on it 16:32:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:23 # See #4871 16:32:23 requested_fixtures_that_should_finalize_us = [] 16:32:23 for argname in self.argnames: 16:32:23 fixturedef = request._get_active_fixturedef(argname) 16:32:23 # Saves requested fixtures in a list so we later can add our finalizer 16:32:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:23 # down first. This is generally handled by SetupState, but still currently 16:32:23 # needed when this fixture is not parametrized but depends on a parametrized 16:32:23 # fixture. 16:32:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:23 16:32:23 # Check for (and return) cached value/exception. 16:32:23 if self.cached_result is not None: 16:32:23 request_cache_key = self.cache_key(request) 16:32:23 cache_key = self.cached_result[1] 16:32:23 try: 16:32:23 # Attempt to make a normal == check: this might fail for objects 16:32:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:23 cache_hit = bool(request_cache_key == cache_key) 16:32:23 except (ValueError, RuntimeError): 16:32:23 # If the comparison raises, use 'is' as fallback. 16:32:23 cache_hit = request_cache_key is cache_key 16:32:23 16:32:23 if cache_hit: 16:32:23 if self.cached_result[2] is not None: 16:32:23 exc, exc_tb = self.cached_result[2] 16:32:23 raise exc.with_traceback(exc_tb) 16:32:23 else: 16:32:23 return self.cached_result[0] 16:32:23 # We have a previous but differently parametrized fixture instance 16:32:23 # so we need to tear it down before creating a new one. 16:32:23 self.finish(request) 16:32:23 assert self.cached_result is None 16:32:23 16:32:23 # Add finalizer to requested fixtures we saved previously. 16:32:23 # We make sure to do this after checking for cached value to avoid 16:32:23 # adding our finalizer multiple times. (#12135) 16:32:23 finalizer = functools.partial(self.finish, request=request) 16:32:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:23 parent_fixture.addfinalizer(finalizer) 16:32:23 16:32:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:23 # which is executed last. 16:32:23 > assert not self._finalizers 16:32:23 ^^^^^^^^^^^^^^^^^^^^ 16:32:23 E AssertionError 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:23 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 16:32:23 16:32:23 cls = 16:32:23 func = . at 0x7f3b4fff7740> 16:32:23 when = 'setup' 16:32:23 reraise = (, ) 16:32:23 16:32:23 @classmethod 16:32:23 def from_call( 16:32:23 cls, 16:32:23 func: Callable[[], TResult], 16:32:23 when: Literal["collect", "setup", "call", "teardown"], 16:32:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:23 ) -> CallInfo[TResult]: 16:32:23 """Call func, wrapping the result in a CallInfo. 16:32:23 16:32:23 :param func: 16:32:23 The function to call. Called without arguments. 16:32:23 :type func: Callable[[], _pytest.runner.TResult] 16:32:23 :param when: 16:32:23 The phase in which the function is called. 16:32:23 :param reraise: 16:32:23 Exception or exceptions that shall propagate if raised by the 16:32:23 function, instead of being wrapped in the CallInfo. 16:32:23 """ 16:32:23 excinfo = None 16:32:23 instant = timing.Instant() 16:32:23 try: 16:32:23 > result: TResult | None = func() 16:32:23 ^^^^^^ 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:23 lambda: runtest_hook(item=item, **kwds), 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:23 yield 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:23 return (yield) 16:32:23 ^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:23 item.session._setupstate.setup(item) 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:23 col.setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:23 super().setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:23 self._request._fillfixtures() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:23 fixturedef = self._get_active_fixturedef(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:23 fixturedef.execute(request=subrequest) 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 16:32:23 self = 16:32:23 request = > 16:32:23 16:32:23 def execute(self, request: SubRequest) -> FixtureValue: 16:32:23 """Return the value of this fixture, executing it if not cached.""" 16:32:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:23 # This needs to be done before checking if we have a cached value, since 16:32:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:23 # parametrization, they finalize themselves and fixtures depending on it 16:32:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:23 # See #4871 16:32:23 requested_fixtures_that_should_finalize_us = [] 16:32:23 for argname in self.argnames: 16:32:23 fixturedef = request._get_active_fixturedef(argname) 16:32:23 # Saves requested fixtures in a list so we later can add our finalizer 16:32:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:23 # down first. This is generally handled by SetupState, but still currently 16:32:23 # needed when this fixture is not parametrized but depends on a parametrized 16:32:23 # fixture. 16:32:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:23 16:32:23 # Check for (and return) cached value/exception. 16:32:23 if self.cached_result is not None: 16:32:23 request_cache_key = self.cache_key(request) 16:32:23 cache_key = self.cached_result[1] 16:32:23 try: 16:32:23 # Attempt to make a normal == check: this might fail for objects 16:32:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:23 cache_hit = bool(request_cache_key == cache_key) 16:32:23 except (ValueError, RuntimeError): 16:32:23 # If the comparison raises, use 'is' as fallback. 16:32:23 cache_hit = request_cache_key is cache_key 16:32:23 16:32:23 if cache_hit: 16:32:23 if self.cached_result[2] is not None: 16:32:23 exc, exc_tb = self.cached_result[2] 16:32:23 raise exc.with_traceback(exc_tb) 16:32:23 else: 16:32:23 return self.cached_result[0] 16:32:23 # We have a previous but differently parametrized fixture instance 16:32:23 # so we need to tear it down before creating a new one. 16:32:23 self.finish(request) 16:32:23 assert self.cached_result is None 16:32:23 16:32:23 # Add finalizer to requested fixtures we saved previously. 16:32:23 # We make sure to do this after checking for cached value to avoid 16:32:23 # adding our finalizer multiple times. (#12135) 16:32:23 finalizer = functools.partial(self.finish, request=request) 16:32:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:23 parent_fixture.addfinalizer(finalizer) 16:32:23 16:32:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:23 # which is executed last. 16:32:23 > assert not self._finalizers 16:32:23 ^^^^^^^^^^^^^^^^^^^^ 16:32:23 E AssertionError 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:23 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_SRG1_PP7_TXRX _ 16:32:23 16:32:23 cls = 16:32:23 func = . at 0x7f3b4e63f560> 16:32:23 when = 'setup' 16:32:23 reraise = (, ) 16:32:23 16:32:23 @classmethod 16:32:23 def from_call( 16:32:23 cls, 16:32:23 func: Callable[[], TResult], 16:32:23 when: Literal["collect", "setup", "call", "teardown"], 16:32:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:23 ) -> CallInfo[TResult]: 16:32:23 """Call func, wrapping the result in a CallInfo. 16:32:23 16:32:23 :param func: 16:32:23 The function to call. Called without arguments. 16:32:23 :type func: Callable[[], _pytest.runner.TResult] 16:32:23 :param when: 16:32:23 The phase in which the function is called. 16:32:23 :param reraise: 16:32:23 Exception or exceptions that shall propagate if raised by the 16:32:23 function, instead of being wrapped in the CallInfo. 16:32:23 """ 16:32:23 excinfo = None 16:32:23 instant = timing.Instant() 16:32:23 try: 16:32:23 > result: TResult | None = func() 16:32:23 ^^^^^^ 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:23 lambda: runtest_hook(item=item, **kwds), 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:23 yield 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:23 return (yield) 16:32:23 ^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:23 item.session._setupstate.setup(item) 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:23 col.setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:23 super().setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:23 self._request._fillfixtures() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:23 fixturedef = self._get_active_fixturedef(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:23 fixturedef.execute(request=subrequest) 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 16:32:23 self = 16:32:23 request = > 16:32:23 16:32:23 def execute(self, request: SubRequest) -> FixtureValue: 16:32:23 """Return the value of this fixture, executing it if not cached.""" 16:32:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:23 # This needs to be done before checking if we have a cached value, since 16:32:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:23 # parametrization, they finalize themselves and fixtures depending on it 16:32:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:23 # See #4871 16:32:23 requested_fixtures_that_should_finalize_us = [] 16:32:23 for argname in self.argnames: 16:32:23 fixturedef = request._get_active_fixturedef(argname) 16:32:23 # Saves requested fixtures in a list so we later can add our finalizer 16:32:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:23 # down first. This is generally handled by SetupState, but still currently 16:32:23 # needed when this fixture is not parametrized but depends on a parametrized 16:32:23 # fixture. 16:32:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:23 16:32:23 # Check for (and return) cached value/exception. 16:32:23 if self.cached_result is not None: 16:32:23 request_cache_key = self.cache_key(request) 16:32:23 cache_key = self.cached_result[1] 16:32:23 try: 16:32:23 # Attempt to make a normal == check: this might fail for objects 16:32:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:23 cache_hit = bool(request_cache_key == cache_key) 16:32:23 except (ValueError, RuntimeError): 16:32:23 # If the comparison raises, use 'is' as fallback. 16:32:23 cache_hit = request_cache_key is cache_key 16:32:23 16:32:23 if cache_hit: 16:32:23 if self.cached_result[2] is not None: 16:32:23 exc, exc_tb = self.cached_result[2] 16:32:23 raise exc.with_traceback(exc_tb) 16:32:23 else: 16:32:23 return self.cached_result[0] 16:32:23 # We have a previous but differently parametrized fixture instance 16:32:23 # so we need to tear it down before creating a new one. 16:32:23 self.finish(request) 16:32:23 assert self.cached_result is None 16:32:23 16:32:23 # Add finalizer to requested fixtures we saved previously. 16:32:23 # We make sure to do this after checking for cached value to avoid 16:32:23 # adding our finalizer multiple times. (#12135) 16:32:23 finalizer = functools.partial(self.finish, request=request) 16:32:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:23 parent_fixture.addfinalizer(finalizer) 16:32:23 16:32:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:23 # which is executed last. 16:32:23 > assert not self._finalizers 16:32:23 ^^^^^^^^^^^^^^^^^^^^ 16:32:23 E AssertionError 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:23 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG3_PP1_TXRX _ 16:32:23 16:32:23 cls = 16:32:23 func = . at 0x7f3b4ce713a0> 16:32:23 when = 'setup' 16:32:23 reraise = (, ) 16:32:23 16:32:23 @classmethod 16:32:23 def from_call( 16:32:23 cls, 16:32:23 func: Callable[[], TResult], 16:32:23 when: Literal["collect", "setup", "call", "teardown"], 16:32:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:23 ) -> CallInfo[TResult]: 16:32:23 """Call func, wrapping the result in a CallInfo. 16:32:23 16:32:23 :param func: 16:32:23 The function to call. Called without arguments. 16:32:23 :type func: Callable[[], _pytest.runner.TResult] 16:32:23 :param when: 16:32:23 The phase in which the function is called. 16:32:23 :param reraise: 16:32:23 Exception or exceptions that shall propagate if raised by the 16:32:23 function, instead of being wrapped in the CallInfo. 16:32:23 """ 16:32:23 excinfo = None 16:32:23 instant = timing.Instant() 16:32:23 try: 16:32:23 > result: TResult | None = func() 16:32:23 ^^^^^^ 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:23 lambda: runtest_hook(item=item, **kwds), 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:23 yield 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:23 return (yield) 16:32:23 ^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:23 item.session._setupstate.setup(item) 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:23 col.setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:23 super().setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:23 self._request._fillfixtures() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:23 fixturedef = self._get_active_fixturedef(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:23 fixturedef.execute(request=subrequest) 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 16:32:23 self = 16:32:23 request = > 16:32:23 16:32:23 def execute(self, request: SubRequest) -> FixtureValue: 16:32:23 """Return the value of this fixture, executing it if not cached.""" 16:32:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:23 # This needs to be done before checking if we have a cached value, since 16:32:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:23 # parametrization, they finalize themselves and fixtures depending on it 16:32:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:23 # See #4871 16:32:23 requested_fixtures_that_should_finalize_us = [] 16:32:23 for argname in self.argnames: 16:32:23 fixturedef = request._get_active_fixturedef(argname) 16:32:23 # Saves requested fixtures in a list so we later can add our finalizer 16:32:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:23 # down first. This is generally handled by SetupState, but still currently 16:32:23 # needed when this fixture is not parametrized but depends on a parametrized 16:32:23 # fixture. 16:32:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:23 16:32:23 # Check for (and return) cached value/exception. 16:32:23 if self.cached_result is not None: 16:32:23 request_cache_key = self.cache_key(request) 16:32:23 cache_key = self.cached_result[1] 16:32:23 try: 16:32:23 # Attempt to make a normal == check: this might fail for objects 16:32:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:23 cache_hit = bool(request_cache_key == cache_key) 16:32:23 except (ValueError, RuntimeError): 16:32:23 # If the comparison raises, use 'is' as fallback. 16:32:23 cache_hit = request_cache_key is cache_key 16:32:23 16:32:23 if cache_hit: 16:32:23 if self.cached_result[2] is not None: 16:32:23 exc, exc_tb = self.cached_result[2] 16:32:23 raise exc.with_traceback(exc_tb) 16:32:23 else: 16:32:23 return self.cached_result[0] 16:32:23 # We have a previous but differently parametrized fixture instance 16:32:23 # so we need to tear it down before creating a new one. 16:32:23 self.finish(request) 16:32:23 assert self.cached_result is None 16:32:23 16:32:23 # Add finalizer to requested fixtures we saved previously. 16:32:23 # We make sure to do this after checking for cached value to avoid 16:32:23 # adding our finalizer multiple times. (#12135) 16:32:23 finalizer = functools.partial(self.finish, request=request) 16:32:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:23 parent_fixture.addfinalizer(finalizer) 16:32:23 16:32:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:23 # which is executed last. 16:32:23 > assert not self._finalizers 16:32:23 ^^^^^^^^^^^^^^^^^^^^ 16:32:23 E AssertionError 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:23 _ ERROR at setup of TestTransportPCEPortmapping.test_07_xpdr_device_connection _ 16:32:23 16:32:23 cls = 16:32:23 func = . at 0x7f3b4ce71580> 16:32:23 when = 'setup' 16:32:23 reraise = (, ) 16:32:23 16:32:23 @classmethod 16:32:23 def from_call( 16:32:23 cls, 16:32:23 func: Callable[[], TResult], 16:32:23 when: Literal["collect", "setup", "call", "teardown"], 16:32:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:23 ) -> CallInfo[TResult]: 16:32:23 """Call func, wrapping the result in a CallInfo. 16:32:23 16:32:23 :param func: 16:32:23 The function to call. Called without arguments. 16:32:23 :type func: Callable[[], _pytest.runner.TResult] 16:32:23 :param when: 16:32:23 The phase in which the function is called. 16:32:23 :param reraise: 16:32:23 Exception or exceptions that shall propagate if raised by the 16:32:23 function, instead of being wrapped in the CallInfo. 16:32:23 """ 16:32:23 excinfo = None 16:32:23 instant = timing.Instant() 16:32:23 try: 16:32:23 > result: TResult | None = func() 16:32:23 ^^^^^^ 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:23 lambda: runtest_hook(item=item, **kwds), 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:23 yield 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:23 return (yield) 16:32:23 ^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:23 item.session._setupstate.setup(item) 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:23 col.setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:23 super().setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:23 self._request._fillfixtures() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:23 fixturedef = self._get_active_fixturedef(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:23 fixturedef.execute(request=subrequest) 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 16:32:23 self = 16:32:23 request = > 16:32:23 16:32:23 def execute(self, request: SubRequest) -> FixtureValue: 16:32:23 """Return the value of this fixture, executing it if not cached.""" 16:32:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:23 # This needs to be done before checking if we have a cached value, since 16:32:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:23 # parametrization, they finalize themselves and fixtures depending on it 16:32:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:23 # See #4871 16:32:23 requested_fixtures_that_should_finalize_us = [] 16:32:23 for argname in self.argnames: 16:32:23 fixturedef = request._get_active_fixturedef(argname) 16:32:23 # Saves requested fixtures in a list so we later can add our finalizer 16:32:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:23 # down first. This is generally handled by SetupState, but still currently 16:32:23 # needed when this fixture is not parametrized but depends on a parametrized 16:32:23 # fixture. 16:32:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:23 16:32:23 # Check for (and return) cached value/exception. 16:32:23 if self.cached_result is not None: 16:32:23 request_cache_key = self.cache_key(request) 16:32:23 cache_key = self.cached_result[1] 16:32:23 try: 16:32:23 # Attempt to make a normal == check: this might fail for objects 16:32:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:23 cache_hit = bool(request_cache_key == cache_key) 16:32:23 except (ValueError, RuntimeError): 16:32:23 # If the comparison raises, use 'is' as fallback. 16:32:23 cache_hit = request_cache_key is cache_key 16:32:23 16:32:23 if cache_hit: 16:32:23 if self.cached_result[2] is not None: 16:32:23 exc, exc_tb = self.cached_result[2] 16:32:23 raise exc.with_traceback(exc_tb) 16:32:23 else: 16:32:23 return self.cached_result[0] 16:32:23 # We have a previous but differently parametrized fixture instance 16:32:23 # so we need to tear it down before creating a new one. 16:32:23 self.finish(request) 16:32:23 assert self.cached_result is None 16:32:23 16:32:23 # Add finalizer to requested fixtures we saved previously. 16:32:23 # We make sure to do this after checking for cached value to avoid 16:32:23 # adding our finalizer multiple times. (#12135) 16:32:23 finalizer = functools.partial(self.finish, request=request) 16:32:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:23 parent_fixture.addfinalizer(finalizer) 16:32:23 16:32:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:23 # which is executed last. 16:32:23 > assert not self._finalizers 16:32:23 ^^^^^^^^^^^^^^^^^^^^ 16:32:23 E AssertionError 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:23 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connected __ 16:32:23 16:32:23 cls = 16:32:23 func = . at 0x7f3b4cea3600> 16:32:23 when = 'setup' 16:32:23 reraise = (, ) 16:32:23 16:32:23 @classmethod 16:32:23 def from_call( 16:32:23 cls, 16:32:23 func: Callable[[], TResult], 16:32:23 when: Literal["collect", "setup", "call", "teardown"], 16:32:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:23 ) -> CallInfo[TResult]: 16:32:23 """Call func, wrapping the result in a CallInfo. 16:32:23 16:32:23 :param func: 16:32:23 The function to call. Called without arguments. 16:32:23 :type func: Callable[[], _pytest.runner.TResult] 16:32:23 :param when: 16:32:23 The phase in which the function is called. 16:32:23 :param reraise: 16:32:23 Exception or exceptions that shall propagate if raised by the 16:32:23 function, instead of being wrapped in the CallInfo. 16:32:23 """ 16:32:23 excinfo = None 16:32:23 instant = timing.Instant() 16:32:23 try: 16:32:23 > result: TResult | None = func() 16:32:23 ^^^^^^ 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:23 lambda: runtest_hook(item=item, **kwds), 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:23 yield 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:23 return (yield) 16:32:23 ^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:23 item.session._setupstate.setup(item) 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:23 col.setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:23 super().setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:23 self._request._fillfixtures() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:23 fixturedef = self._get_active_fixturedef(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:23 fixturedef.execute(request=subrequest) 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 16:32:23 self = 16:32:23 request = > 16:32:23 16:32:23 def execute(self, request: SubRequest) -> FixtureValue: 16:32:23 """Return the value of this fixture, executing it if not cached.""" 16:32:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:23 # This needs to be done before checking if we have a cached value, since 16:32:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:23 # parametrization, they finalize themselves and fixtures depending on it 16:32:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:23 # See #4871 16:32:23 requested_fixtures_that_should_finalize_us = [] 16:32:23 for argname in self.argnames: 16:32:23 fixturedef = request._get_active_fixturedef(argname) 16:32:23 # Saves requested fixtures in a list so we later can add our finalizer 16:32:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:23 # down first. This is generally handled by SetupState, but still currently 16:32:23 # needed when this fixture is not parametrized but depends on a parametrized 16:32:23 # fixture. 16:32:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:23 16:32:23 # Check for (and return) cached value/exception. 16:32:23 if self.cached_result is not None: 16:32:23 request_cache_key = self.cache_key(request) 16:32:23 cache_key = self.cached_result[1] 16:32:23 try: 16:32:23 # Attempt to make a normal == check: this might fail for objects 16:32:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:23 cache_hit = bool(request_cache_key == cache_key) 16:32:23 except (ValueError, RuntimeError): 16:32:23 # If the comparison raises, use 'is' as fallback. 16:32:23 cache_hit = request_cache_key is cache_key 16:32:23 16:32:23 if cache_hit: 16:32:23 if self.cached_result[2] is not None: 16:32:23 exc, exc_tb = self.cached_result[2] 16:32:23 raise exc.with_traceback(exc_tb) 16:32:23 else: 16:32:23 return self.cached_result[0] 16:32:23 # We have a previous but differently parametrized fixture instance 16:32:23 # so we need to tear it down before creating a new one. 16:32:23 self.finish(request) 16:32:23 assert self.cached_result is None 16:32:23 16:32:23 # Add finalizer to requested fixtures we saved previously. 16:32:23 # We make sure to do this after checking for cached value to avoid 16:32:23 # adding our finalizer multiple times. (#12135) 16:32:23 finalizer = functools.partial(self.finish, request=request) 16:32:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:23 parent_fixture.addfinalizer(finalizer) 16:32:23 16:32:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:23 # which is executed last. 16:32:23 > assert not self._finalizers 16:32:23 ^^^^^^^^^^^^^^^^^^^^ 16:32:23 E AssertionError 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:23 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_portmapping_info __ 16:32:23 16:32:23 cls = 16:32:23 func = . at 0x7f3b4cea28e0> 16:32:23 when = 'setup' 16:32:23 reraise = (, ) 16:32:23 16:32:23 @classmethod 16:32:23 def from_call( 16:32:23 cls, 16:32:23 func: Callable[[], TResult], 16:32:23 when: Literal["collect", "setup", "call", "teardown"], 16:32:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:23 ) -> CallInfo[TResult]: 16:32:23 """Call func, wrapping the result in a CallInfo. 16:32:23 16:32:23 :param func: 16:32:23 The function to call. Called without arguments. 16:32:23 :type func: Callable[[], _pytest.runner.TResult] 16:32:23 :param when: 16:32:23 The phase in which the function is called. 16:32:23 :param reraise: 16:32:23 Exception or exceptions that shall propagate if raised by the 16:32:23 function, instead of being wrapped in the CallInfo. 16:32:23 """ 16:32:23 excinfo = None 16:32:23 instant = timing.Instant() 16:32:23 try: 16:32:23 > result: TResult | None = func() 16:32:23 ^^^^^^ 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:23 lambda: runtest_hook(item=item, **kwds), 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:23 yield 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:23 return (yield) 16:32:23 ^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:23 item.session._setupstate.setup(item) 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:23 col.setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:23 super().setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:23 self._request._fillfixtures() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:23 fixturedef = self._get_active_fixturedef(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:23 fixturedef.execute(request=subrequest) 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 16:32:23 self = 16:32:23 request = > 16:32:23 16:32:23 def execute(self, request: SubRequest) -> FixtureValue: 16:32:23 """Return the value of this fixture, executing it if not cached.""" 16:32:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:23 # This needs to be done before checking if we have a cached value, since 16:32:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:23 # parametrization, they finalize themselves and fixtures depending on it 16:32:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:23 # See #4871 16:32:23 requested_fixtures_that_should_finalize_us = [] 16:32:23 for argname in self.argnames: 16:32:23 fixturedef = request._get_active_fixturedef(argname) 16:32:23 # Saves requested fixtures in a list so we later can add our finalizer 16:32:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:23 # down first. This is generally handled by SetupState, but still currently 16:32:23 # needed when this fixture is not parametrized but depends on a parametrized 16:32:23 # fixture. 16:32:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:23 16:32:23 # Check for (and return) cached value/exception. 16:32:23 if self.cached_result is not None: 16:32:23 request_cache_key = self.cache_key(request) 16:32:23 cache_key = self.cached_result[1] 16:32:23 try: 16:32:23 # Attempt to make a normal == check: this might fail for objects 16:32:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:23 cache_hit = bool(request_cache_key == cache_key) 16:32:23 except (ValueError, RuntimeError): 16:32:23 # If the comparison raises, use 'is' as fallback. 16:32:23 cache_hit = request_cache_key is cache_key 16:32:23 16:32:23 if cache_hit: 16:32:23 if self.cached_result[2] is not None: 16:32:23 exc, exc_tb = self.cached_result[2] 16:32:23 raise exc.with_traceback(exc_tb) 16:32:23 else: 16:32:23 return self.cached_result[0] 16:32:23 # We have a previous but differently parametrized fixture instance 16:32:23 # so we need to tear it down before creating a new one. 16:32:23 self.finish(request) 16:32:23 assert self.cached_result is None 16:32:23 16:32:23 # Add finalizer to requested fixtures we saved previously. 16:32:23 # We make sure to do this after checking for cached value to avoid 16:32:23 # adding our finalizer multiple times. (#12135) 16:32:23 finalizer = functools.partial(self.finish, request=request) 16:32:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:23 parent_fixture.addfinalizer(finalizer) 16:32:23 16:32:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:23 # which is executed last. 16:32:23 > assert not self._finalizers 16:32:23 ^^^^^^^^^^^^^^^^^^^^ 16:32:23 E AssertionError 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:23 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_NETWORK1 _ 16:32:23 16:32:23 cls = 16:32:23 func = . at 0x7f3b4cea2de0> 16:32:23 when = 'setup' 16:32:23 reraise = (, ) 16:32:23 16:32:23 @classmethod 16:32:23 def from_call( 16:32:23 cls, 16:32:23 func: Callable[[], TResult], 16:32:23 when: Literal["collect", "setup", "call", "teardown"], 16:32:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:23 ) -> CallInfo[TResult]: 16:32:23 """Call func, wrapping the result in a CallInfo. 16:32:23 16:32:23 :param func: 16:32:23 The function to call. Called without arguments. 16:32:23 :type func: Callable[[], _pytest.runner.TResult] 16:32:23 :param when: 16:32:23 The phase in which the function is called. 16:32:23 :param reraise: 16:32:23 Exception or exceptions that shall propagate if raised by the 16:32:23 function, instead of being wrapped in the CallInfo. 16:32:23 """ 16:32:23 excinfo = None 16:32:23 instant = timing.Instant() 16:32:23 try: 16:32:23 > result: TResult | None = func() 16:32:23 ^^^^^^ 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:23 lambda: runtest_hook(item=item, **kwds), 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:23 yield 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:23 return (yield) 16:32:23 ^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:23 item.session._setupstate.setup(item) 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:23 col.setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:23 super().setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:23 self._request._fillfixtures() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:23 fixturedef = self._get_active_fixturedef(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:23 fixturedef.execute(request=subrequest) 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 16:32:23 self = 16:32:23 request = > 16:32:23 16:32:23 def execute(self, request: SubRequest) -> FixtureValue: 16:32:23 """Return the value of this fixture, executing it if not cached.""" 16:32:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:23 # This needs to be done before checking if we have a cached value, since 16:32:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:23 # parametrization, they finalize themselves and fixtures depending on it 16:32:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:23 # See #4871 16:32:23 requested_fixtures_that_should_finalize_us = [] 16:32:23 for argname in self.argnames: 16:32:23 fixturedef = request._get_active_fixturedef(argname) 16:32:23 # Saves requested fixtures in a list so we later can add our finalizer 16:32:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:23 # down first. This is generally handled by SetupState, but still currently 16:32:23 # needed when this fixture is not parametrized but depends on a parametrized 16:32:23 # fixture. 16:32:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:23 16:32:23 # Check for (and return) cached value/exception. 16:32:23 if self.cached_result is not None: 16:32:23 request_cache_key = self.cache_key(request) 16:32:23 cache_key = self.cached_result[1] 16:32:23 try: 16:32:23 # Attempt to make a normal == check: this might fail for objects 16:32:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:23 cache_hit = bool(request_cache_key == cache_key) 16:32:23 except (ValueError, RuntimeError): 16:32:23 # If the comparison raises, use 'is' as fallback. 16:32:23 cache_hit = request_cache_key is cache_key 16:32:23 16:32:23 if cache_hit: 16:32:23 if self.cached_result[2] is not None: 16:32:23 exc, exc_tb = self.cached_result[2] 16:32:23 raise exc.with_traceback(exc_tb) 16:32:23 else: 16:32:23 return self.cached_result[0] 16:32:23 # We have a previous but differently parametrized fixture instance 16:32:23 # so we need to tear it down before creating a new one. 16:32:23 self.finish(request) 16:32:23 assert self.cached_result is None 16:32:23 16:32:23 # Add finalizer to requested fixtures we saved previously. 16:32:23 # We make sure to do this after checking for cached value to avoid 16:32:23 # adding our finalizer multiple times. (#12135) 16:32:23 finalizer = functools.partial(self.finish, request=request) 16:32:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:23 parent_fixture.addfinalizer(finalizer) 16:32:23 16:32:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:23 # which is executed last. 16:32:23 > assert not self._finalizers 16:32:23 ^^^^^^^^^^^^^^^^^^^^ 16:32:23 E AssertionError 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:23 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK2 _ 16:32:23 16:32:23 cls = 16:32:23 func = . at 0x7f3b4cea3600> 16:32:23 when = 'setup' 16:32:23 reraise = (, ) 16:32:23 16:32:23 @classmethod 16:32:23 def from_call( 16:32:23 cls, 16:32:23 func: Callable[[], TResult], 16:32:23 when: Literal["collect", "setup", "call", "teardown"], 16:32:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:23 ) -> CallInfo[TResult]: 16:32:23 """Call func, wrapping the result in a CallInfo. 16:32:23 16:32:23 :param func: 16:32:23 The function to call. Called without arguments. 16:32:23 :type func: Callable[[], _pytest.runner.TResult] 16:32:23 :param when: 16:32:23 The phase in which the function is called. 16:32:23 :param reraise: 16:32:23 Exception or exceptions that shall propagate if raised by the 16:32:23 function, instead of being wrapped in the CallInfo. 16:32:23 """ 16:32:23 excinfo = None 16:32:23 instant = timing.Instant() 16:32:23 try: 16:32:23 > result: TResult | None = func() 16:32:23 ^^^^^^ 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:23 lambda: runtest_hook(item=item, **kwds), 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:23 yield 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:23 return (yield) 16:32:23 ^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:23 item.session._setupstate.setup(item) 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:23 col.setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:23 super().setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:23 self._request._fillfixtures() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:23 fixturedef = self._get_active_fixturedef(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:23 fixturedef.execute(request=subrequest) 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 16:32:23 self = 16:32:23 request = > 16:32:23 16:32:23 def execute(self, request: SubRequest) -> FixtureValue: 16:32:23 """Return the value of this fixture, executing it if not cached.""" 16:32:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:23 # This needs to be done before checking if we have a cached value, since 16:32:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:23 # parametrization, they finalize themselves and fixtures depending on it 16:32:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:23 # See #4871 16:32:23 requested_fixtures_that_should_finalize_us = [] 16:32:23 for argname in self.argnames: 16:32:23 fixturedef = request._get_active_fixturedef(argname) 16:32:23 # Saves requested fixtures in a list so we later can add our finalizer 16:32:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:23 # down first. This is generally handled by SetupState, but still currently 16:32:23 # needed when this fixture is not parametrized but depends on a parametrized 16:32:23 # fixture. 16:32:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:23 16:32:23 # Check for (and return) cached value/exception. 16:32:23 if self.cached_result is not None: 16:32:23 request_cache_key = self.cache_key(request) 16:32:23 cache_key = self.cached_result[1] 16:32:23 try: 16:32:23 # Attempt to make a normal == check: this might fail for objects 16:32:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:23 cache_hit = bool(request_cache_key == cache_key) 16:32:23 except (ValueError, RuntimeError): 16:32:23 # If the comparison raises, use 'is' as fallback. 16:32:23 cache_hit = request_cache_key is cache_key 16:32:23 16:32:23 if cache_hit: 16:32:23 if self.cached_result[2] is not None: 16:32:23 exc, exc_tb = self.cached_result[2] 16:32:23 raise exc.with_traceback(exc_tb) 16:32:23 else: 16:32:23 return self.cached_result[0] 16:32:23 # We have a previous but differently parametrized fixture instance 16:32:23 # so we need to tear it down before creating a new one. 16:32:23 self.finish(request) 16:32:23 assert self.cached_result is None 16:32:23 16:32:23 # Add finalizer to requested fixtures we saved previously. 16:32:23 # We make sure to do this after checking for cached value to avoid 16:32:23 # adding our finalizer multiple times. (#12135) 16:32:23 finalizer = functools.partial(self.finish, request=request) 16:32:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:23 parent_fixture.addfinalizer(finalizer) 16:32:23 16:32:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:23 # which is executed last. 16:32:23 > assert not self._finalizers 16:32:23 ^^^^^^^^^^^^^^^^^^^^ 16:32:23 E AssertionError 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:23 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_CLIENT1 _ 16:32:23 16:32:23 cls = 16:32:23 func = . at 0x7f3b4cea2f20> 16:32:23 when = 'setup' 16:32:23 reraise = (, ) 16:32:23 16:32:23 @classmethod 16:32:23 def from_call( 16:32:23 cls, 16:32:23 func: Callable[[], TResult], 16:32:23 when: Literal["collect", "setup", "call", "teardown"], 16:32:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:23 ) -> CallInfo[TResult]: 16:32:23 """Call func, wrapping the result in a CallInfo. 16:32:23 16:32:23 :param func: 16:32:23 The function to call. Called without arguments. 16:32:23 :type func: Callable[[], _pytest.runner.TResult] 16:32:23 :param when: 16:32:23 The phase in which the function is called. 16:32:23 :param reraise: 16:32:23 Exception or exceptions that shall propagate if raised by the 16:32:23 function, instead of being wrapped in the CallInfo. 16:32:23 """ 16:32:23 excinfo = None 16:32:23 instant = timing.Instant() 16:32:23 try: 16:32:23 > result: TResult | None = func() 16:32:23 ^^^^^^ 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:23 lambda: runtest_hook(item=item, **kwds), 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:23 yield 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:23 return (yield) 16:32:23 ^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:23 item.session._setupstate.setup(item) 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:23 col.setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:23 super().setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:23 self._request._fillfixtures() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:23 fixturedef = self._get_active_fixturedef(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:23 fixturedef.execute(request=subrequest) 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 16:32:23 self = 16:32:23 request = > 16:32:23 16:32:23 def execute(self, request: SubRequest) -> FixtureValue: 16:32:23 """Return the value of this fixture, executing it if not cached.""" 16:32:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:23 # This needs to be done before checking if we have a cached value, since 16:32:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:23 # parametrization, they finalize themselves and fixtures depending on it 16:32:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:23 # See #4871 16:32:23 requested_fixtures_that_should_finalize_us = [] 16:32:23 for argname in self.argnames: 16:32:23 fixturedef = request._get_active_fixturedef(argname) 16:32:23 # Saves requested fixtures in a list so we later can add our finalizer 16:32:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:23 # down first. This is generally handled by SetupState, but still currently 16:32:23 # needed when this fixture is not parametrized but depends on a parametrized 16:32:23 # fixture. 16:32:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:23 16:32:23 # Check for (and return) cached value/exception. 16:32:23 if self.cached_result is not None: 16:32:23 request_cache_key = self.cache_key(request) 16:32:23 cache_key = self.cached_result[1] 16:32:23 try: 16:32:23 # Attempt to make a normal == check: this might fail for objects 16:32:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:23 cache_hit = bool(request_cache_key == cache_key) 16:32:23 except (ValueError, RuntimeError): 16:32:23 # If the comparison raises, use 'is' as fallback. 16:32:23 cache_hit = request_cache_key is cache_key 16:32:23 16:32:23 if cache_hit: 16:32:23 if self.cached_result[2] is not None: 16:32:23 exc, exc_tb = self.cached_result[2] 16:32:23 raise exc.with_traceback(exc_tb) 16:32:23 else: 16:32:23 return self.cached_result[0] 16:32:23 # We have a previous but differently parametrized fixture instance 16:32:23 # so we need to tear it down before creating a new one. 16:32:23 self.finish(request) 16:32:23 assert self.cached_result is None 16:32:23 16:32:23 # Add finalizer to requested fixtures we saved previously. 16:32:23 # We make sure to do this after checking for cached value to avoid 16:32:23 # adding our finalizer multiple times. (#12135) 16:32:23 finalizer = functools.partial(self.finish, request=request) 16:32:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:23 parent_fixture.addfinalizer(finalizer) 16:32:23 16:32:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:23 # which is executed last. 16:32:23 > assert not self._finalizers 16:32:23 ^^^^^^^^^^^^^^^^^^^^ 16:32:23 E AssertionError 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:23 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_CLIENT2 _ 16:32:23 16:32:23 cls = 16:32:23 func = . at 0x7f3b4ce71580> 16:32:23 when = 'setup' 16:32:23 reraise = (, ) 16:32:23 16:32:23 @classmethod 16:32:23 def from_call( 16:32:23 cls, 16:32:23 func: Callable[[], TResult], 16:32:23 when: Literal["collect", "setup", "call", "teardown"], 16:32:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:23 ) -> CallInfo[TResult]: 16:32:23 """Call func, wrapping the result in a CallInfo. 16:32:23 16:32:23 :param func: 16:32:23 The function to call. Called without arguments. 16:32:23 :type func: Callable[[], _pytest.runner.TResult] 16:32:23 :param when: 16:32:23 The phase in which the function is called. 16:32:23 :param reraise: 16:32:23 Exception or exceptions that shall propagate if raised by the 16:32:23 function, instead of being wrapped in the CallInfo. 16:32:23 """ 16:32:23 excinfo = None 16:32:23 instant = timing.Instant() 16:32:23 try: 16:32:23 > result: TResult | None = func() 16:32:23 ^^^^^^ 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:23 lambda: runtest_hook(item=item, **kwds), 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:23 yield 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:23 return (yield) 16:32:23 ^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:23 item.session._setupstate.setup(item) 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:23 col.setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:23 super().setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:23 self._request._fillfixtures() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:23 fixturedef = self._get_active_fixturedef(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:23 fixturedef.execute(request=subrequest) 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 16:32:23 self = 16:32:23 request = > 16:32:23 16:32:23 def execute(self, request: SubRequest) -> FixtureValue: 16:32:23 """Return the value of this fixture, executing it if not cached.""" 16:32:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:23 # This needs to be done before checking if we have a cached value, since 16:32:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:23 # parametrization, they finalize themselves and fixtures depending on it 16:32:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:23 # See #4871 16:32:23 requested_fixtures_that_should_finalize_us = [] 16:32:23 for argname in self.argnames: 16:32:23 fixturedef = request._get_active_fixturedef(argname) 16:32:23 # Saves requested fixtures in a list so we later can add our finalizer 16:32:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:23 # down first. This is generally handled by SetupState, but still currently 16:32:23 # needed when this fixture is not parametrized but depends on a parametrized 16:32:23 # fixture. 16:32:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:23 16:32:23 # Check for (and return) cached value/exception. 16:32:23 if self.cached_result is not None: 16:32:23 request_cache_key = self.cache_key(request) 16:32:23 cache_key = self.cached_result[1] 16:32:23 try: 16:32:23 # Attempt to make a normal == check: this might fail for objects 16:32:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:23 cache_hit = bool(request_cache_key == cache_key) 16:32:23 except (ValueError, RuntimeError): 16:32:23 # If the comparison raises, use 'is' as fallback. 16:32:23 cache_hit = request_cache_key is cache_key 16:32:23 16:32:23 if cache_hit: 16:32:23 if self.cached_result[2] is not None: 16:32:23 exc, exc_tb = self.cached_result[2] 16:32:23 raise exc.with_traceback(exc_tb) 16:32:23 else: 16:32:23 return self.cached_result[0] 16:32:23 # We have a previous but differently parametrized fixture instance 16:32:23 # so we need to tear it down before creating a new one. 16:32:23 self.finish(request) 16:32:23 assert self.cached_result is None 16:32:23 16:32:23 # Add finalizer to requested fixtures we saved previously. 16:32:23 # We make sure to do this after checking for cached value to avoid 16:32:23 # adding our finalizer multiple times. (#12135) 16:32:23 finalizer = functools.partial(self.finish, request=request) 16:32:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:23 parent_fixture.addfinalizer(finalizer) 16:32:23 16:32:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:23 # which is executed last. 16:32:23 > assert not self._finalizers 16:32:23 ^^^^^^^^^^^^^^^^^^^^ 16:32:23 E AssertionError 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:23 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_CLIENT3 _ 16:32:23 16:32:23 cls = 16:32:23 func = . at 0x7f3b4cea2de0> 16:32:23 when = 'setup' 16:32:23 reraise = (, ) 16:32:23 16:32:23 @classmethod 16:32:23 def from_call( 16:32:23 cls, 16:32:23 func: Callable[[], TResult], 16:32:23 when: Literal["collect", "setup", "call", "teardown"], 16:32:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:23 ) -> CallInfo[TResult]: 16:32:23 """Call func, wrapping the result in a CallInfo. 16:32:23 16:32:23 :param func: 16:32:23 The function to call. Called without arguments. 16:32:23 :type func: Callable[[], _pytest.runner.TResult] 16:32:23 :param when: 16:32:23 The phase in which the function is called. 16:32:23 :param reraise: 16:32:23 Exception or exceptions that shall propagate if raised by the 16:32:23 function, instead of being wrapped in the CallInfo. 16:32:23 """ 16:32:23 excinfo = None 16:32:23 instant = timing.Instant() 16:32:23 try: 16:32:23 > result: TResult | None = func() 16:32:23 ^^^^^^ 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:23 lambda: runtest_hook(item=item, **kwds), 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:23 yield 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:23 return (yield) 16:32:23 ^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:23 item.session._setupstate.setup(item) 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:23 col.setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:23 super().setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:23 self._request._fillfixtures() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:23 fixturedef = self._get_active_fixturedef(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:23 fixturedef.execute(request=subrequest) 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 16:32:23 self = 16:32:23 request = > 16:32:23 16:32:23 def execute(self, request: SubRequest) -> FixtureValue: 16:32:23 """Return the value of this fixture, executing it if not cached.""" 16:32:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:23 # This needs to be done before checking if we have a cached value, since 16:32:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:23 # parametrization, they finalize themselves and fixtures depending on it 16:32:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:23 # See #4871 16:32:23 requested_fixtures_that_should_finalize_us = [] 16:32:23 for argname in self.argnames: 16:32:23 fixturedef = request._get_active_fixturedef(argname) 16:32:23 # Saves requested fixtures in a list so we later can add our finalizer 16:32:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:23 # down first. This is generally handled by SetupState, but still currently 16:32:23 # needed when this fixture is not parametrized but depends on a parametrized 16:32:23 # fixture. 16:32:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:23 16:32:23 # Check for (and return) cached value/exception. 16:32:23 if self.cached_result is not None: 16:32:23 request_cache_key = self.cache_key(request) 16:32:23 cache_key = self.cached_result[1] 16:32:23 try: 16:32:23 # Attempt to make a normal == check: this might fail for objects 16:32:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:23 cache_hit = bool(request_cache_key == cache_key) 16:32:23 except (ValueError, RuntimeError): 16:32:23 # If the comparison raises, use 'is' as fallback. 16:32:23 cache_hit = request_cache_key is cache_key 16:32:23 16:32:23 if cache_hit: 16:32:23 if self.cached_result[2] is not None: 16:32:23 exc, exc_tb = self.cached_result[2] 16:32:23 raise exc.with_traceback(exc_tb) 16:32:23 else: 16:32:23 return self.cached_result[0] 16:32:23 # We have a previous but differently parametrized fixture instance 16:32:23 # so we need to tear it down before creating a new one. 16:32:23 self.finish(request) 16:32:23 assert self.cached_result is None 16:32:23 16:32:23 # Add finalizer to requested fixtures we saved previously. 16:32:23 # We make sure to do this after checking for cached value to avoid 16:32:23 # adding our finalizer multiple times. (#12135) 16:32:23 finalizer = functools.partial(self.finish, request=request) 16:32:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:23 parent_fixture.addfinalizer(finalizer) 16:32:23 16:32:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:23 # which is executed last. 16:32:23 > assert not self._finalizers 16:32:23 ^^^^^^^^^^^^^^^^^^^^ 16:32:23 E AssertionError 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:23 _ ERROR at setup of TestTransportPCEPortmapping.test_15_xpdr_portmapping_CLIENT4 _ 16:32:23 16:32:23 cls = 16:32:23 func = . at 0x7f3b4cea2f20> 16:32:23 when = 'setup' 16:32:23 reraise = (, ) 16:32:23 16:32:23 @classmethod 16:32:23 def from_call( 16:32:23 cls, 16:32:23 func: Callable[[], TResult], 16:32:23 when: Literal["collect", "setup", "call", "teardown"], 16:32:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:23 ) -> CallInfo[TResult]: 16:32:23 """Call func, wrapping the result in a CallInfo. 16:32:23 16:32:23 :param func: 16:32:23 The function to call. Called without arguments. 16:32:23 :type func: Callable[[], _pytest.runner.TResult] 16:32:23 :param when: 16:32:23 The phase in which the function is called. 16:32:23 :param reraise: 16:32:23 Exception or exceptions that shall propagate if raised by the 16:32:23 function, instead of being wrapped in the CallInfo. 16:32:23 """ 16:32:23 excinfo = None 16:32:23 instant = timing.Instant() 16:32:23 try: 16:32:23 > result: TResult | None = func() 16:32:23 ^^^^^^ 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:23 lambda: runtest_hook(item=item, **kwds), 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:23 yield 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:23 return (yield) 16:32:23 ^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:23 item.session._setupstate.setup(item) 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:23 col.setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:23 super().setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:23 self._request._fillfixtures() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:23 fixturedef = self._get_active_fixturedef(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:23 fixturedef.execute(request=subrequest) 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 16:32:23 self = 16:32:23 request = > 16:32:23 16:32:23 def execute(self, request: SubRequest) -> FixtureValue: 16:32:23 """Return the value of this fixture, executing it if not cached.""" 16:32:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:23 # This needs to be done before checking if we have a cached value, since 16:32:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:23 # parametrization, they finalize themselves and fixtures depending on it 16:32:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:23 # See #4871 16:32:23 requested_fixtures_that_should_finalize_us = [] 16:32:23 for argname in self.argnames: 16:32:23 fixturedef = request._get_active_fixturedef(argname) 16:32:23 # Saves requested fixtures in a list so we later can add our finalizer 16:32:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:23 # down first. This is generally handled by SetupState, but still currently 16:32:23 # needed when this fixture is not parametrized but depends on a parametrized 16:32:23 # fixture. 16:32:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:23 16:32:23 # Check for (and return) cached value/exception. 16:32:23 if self.cached_result is not None: 16:32:23 request_cache_key = self.cache_key(request) 16:32:23 cache_key = self.cached_result[1] 16:32:23 try: 16:32:23 # Attempt to make a normal == check: this might fail for objects 16:32:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:23 cache_hit = bool(request_cache_key == cache_key) 16:32:23 except (ValueError, RuntimeError): 16:32:23 # If the comparison raises, use 'is' as fallback. 16:32:23 cache_hit = request_cache_key is cache_key 16:32:23 16:32:23 if cache_hit: 16:32:23 if self.cached_result[2] is not None: 16:32:23 exc, exc_tb = self.cached_result[2] 16:32:23 raise exc.with_traceback(exc_tb) 16:32:23 else: 16:32:23 return self.cached_result[0] 16:32:23 # We have a previous but differently parametrized fixture instance 16:32:23 # so we need to tear it down before creating a new one. 16:32:23 self.finish(request) 16:32:23 assert self.cached_result is None 16:32:23 16:32:23 # Add finalizer to requested fixtures we saved previously. 16:32:23 # We make sure to do this after checking for cached value to avoid 16:32:23 # adding our finalizer multiple times. (#12135) 16:32:23 finalizer = functools.partial(self.finish, request=request) 16:32:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:23 parent_fixture.addfinalizer(finalizer) 16:32:23 16:32:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:23 # which is executed last. 16:32:23 > assert not self._finalizers 16:32:23 ^^^^^^^^^^^^^^^^^^^^ 16:32:23 E AssertionError 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:23 _ ERROR at setup of TestTransportPCEPortmapping.test_16_xpdr_device_disconnection _ 16:32:23 16:32:23 cls = 16:32:23 func = . at 0x7f3b4ce71800> 16:32:23 when = 'setup' 16:32:23 reraise = (, ) 16:32:23 16:32:23 @classmethod 16:32:23 def from_call( 16:32:23 cls, 16:32:23 func: Callable[[], TResult], 16:32:23 when: Literal["collect", "setup", "call", "teardown"], 16:32:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:23 ) -> CallInfo[TResult]: 16:32:23 """Call func, wrapping the result in a CallInfo. 16:32:23 16:32:23 :param func: 16:32:23 The function to call. Called without arguments. 16:32:23 :type func: Callable[[], _pytest.runner.TResult] 16:32:23 :param when: 16:32:23 The phase in which the function is called. 16:32:23 :param reraise: 16:32:23 Exception or exceptions that shall propagate if raised by the 16:32:23 function, instead of being wrapped in the CallInfo. 16:32:23 """ 16:32:23 excinfo = None 16:32:23 instant = timing.Instant() 16:32:23 try: 16:32:23 > result: TResult | None = func() 16:32:23 ^^^^^^ 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:23 lambda: runtest_hook(item=item, **kwds), 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:23 yield 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:23 return (yield) 16:32:23 ^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:23 item.session._setupstate.setup(item) 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:23 col.setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:23 super().setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:23 self._request._fillfixtures() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:23 fixturedef = self._get_active_fixturedef(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:23 fixturedef.execute(request=subrequest) 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 16:32:23 self = 16:32:23 request = > 16:32:23 16:32:23 def execute(self, request: SubRequest) -> FixtureValue: 16:32:23 """Return the value of this fixture, executing it if not cached.""" 16:32:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:23 # This needs to be done before checking if we have a cached value, since 16:32:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:23 # parametrization, they finalize themselves and fixtures depending on it 16:32:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:23 # See #4871 16:32:23 requested_fixtures_that_should_finalize_us = [] 16:32:23 for argname in self.argnames: 16:32:23 fixturedef = request._get_active_fixturedef(argname) 16:32:23 # Saves requested fixtures in a list so we later can add our finalizer 16:32:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:23 # down first. This is generally handled by SetupState, but still currently 16:32:23 # needed when this fixture is not parametrized but depends on a parametrized 16:32:23 # fixture. 16:32:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:23 16:32:23 # Check for (and return) cached value/exception. 16:32:23 if self.cached_result is not None: 16:32:23 request_cache_key = self.cache_key(request) 16:32:23 cache_key = self.cached_result[1] 16:32:23 try: 16:32:23 # Attempt to make a normal == check: this might fail for objects 16:32:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:23 cache_hit = bool(request_cache_key == cache_key) 16:32:23 except (ValueError, RuntimeError): 16:32:23 # If the comparison raises, use 'is' as fallback. 16:32:23 cache_hit = request_cache_key is cache_key 16:32:23 16:32:23 if cache_hit: 16:32:23 if self.cached_result[2] is not None: 16:32:23 exc, exc_tb = self.cached_result[2] 16:32:23 raise exc.with_traceback(exc_tb) 16:32:23 else: 16:32:23 return self.cached_result[0] 16:32:23 # We have a previous but differently parametrized fixture instance 16:32:23 # so we need to tear it down before creating a new one. 16:32:23 self.finish(request) 16:32:23 assert self.cached_result is None 16:32:23 16:32:23 # Add finalizer to requested fixtures we saved previously. 16:32:23 # We make sure to do this after checking for cached value to avoid 16:32:23 # adding our finalizer multiple times. (#12135) 16:32:23 finalizer = functools.partial(self.finish, request=request) 16:32:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:23 parent_fixture.addfinalizer(finalizer) 16:32:23 16:32:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:23 # which is executed last. 16:32:23 > assert not self._finalizers 16:32:23 ^^^^^^^^^^^^^^^^^^^^ 16:32:23 E AssertionError 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:23 _ ERROR at setup of TestTransportPCEPortmapping.test_17_xpdr_device_disconnected _ 16:32:23 16:32:23 cls = 16:32:23 func = . at 0x7f3b4ce71bc0> 16:32:23 when = 'setup' 16:32:23 reraise = (, ) 16:32:23 16:32:23 @classmethod 16:32:23 def from_call( 16:32:23 cls, 16:32:23 func: Callable[[], TResult], 16:32:23 when: Literal["collect", "setup", "call", "teardown"], 16:32:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:23 ) -> CallInfo[TResult]: 16:32:23 """Call func, wrapping the result in a CallInfo. 16:32:23 16:32:23 :param func: 16:32:23 The function to call. Called without arguments. 16:32:23 :type func: Callable[[], _pytest.runner.TResult] 16:32:23 :param when: 16:32:23 The phase in which the function is called. 16:32:23 :param reraise: 16:32:23 Exception or exceptions that shall propagate if raised by the 16:32:23 function, instead of being wrapped in the CallInfo. 16:32:23 """ 16:32:23 excinfo = None 16:32:23 instant = timing.Instant() 16:32:23 try: 16:32:23 > result: TResult | None = func() 16:32:23 ^^^^^^ 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:23 lambda: runtest_hook(item=item, **kwds), 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:23 yield 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:23 return (yield) 16:32:23 ^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:23 item.session._setupstate.setup(item) 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:23 col.setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:23 super().setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:23 self._request._fillfixtures() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:23 fixturedef = self._get_active_fixturedef(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:23 fixturedef.execute(request=subrequest) 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 16:32:23 self = 16:32:23 request = > 16:32:23 16:32:23 def execute(self, request: SubRequest) -> FixtureValue: 16:32:23 """Return the value of this fixture, executing it if not cached.""" 16:32:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:23 # This needs to be done before checking if we have a cached value, since 16:32:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:23 # parametrization, they finalize themselves and fixtures depending on it 16:32:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:23 # See #4871 16:32:23 requested_fixtures_that_should_finalize_us = [] 16:32:23 for argname in self.argnames: 16:32:23 fixturedef = request._get_active_fixturedef(argname) 16:32:23 # Saves requested fixtures in a list so we later can add our finalizer 16:32:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:23 # down first. This is generally handled by SetupState, but still currently 16:32:23 # needed when this fixture is not parametrized but depends on a parametrized 16:32:23 # fixture. 16:32:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:23 16:32:23 # Check for (and return) cached value/exception. 16:32:23 if self.cached_result is not None: 16:32:23 request_cache_key = self.cache_key(request) 16:32:23 cache_key = self.cached_result[1] 16:32:23 try: 16:32:23 # Attempt to make a normal == check: this might fail for objects 16:32:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:23 cache_hit = bool(request_cache_key == cache_key) 16:32:23 except (ValueError, RuntimeError): 16:32:23 # If the comparison raises, use 'is' as fallback. 16:32:23 cache_hit = request_cache_key is cache_key 16:32:23 16:32:23 if cache_hit: 16:32:23 if self.cached_result[2] is not None: 16:32:23 exc, exc_tb = self.cached_result[2] 16:32:23 raise exc.with_traceback(exc_tb) 16:32:23 else: 16:32:23 return self.cached_result[0] 16:32:23 # We have a previous but differently parametrized fixture instance 16:32:23 # so we need to tear it down before creating a new one. 16:32:23 self.finish(request) 16:32:23 assert self.cached_result is None 16:32:23 16:32:23 # Add finalizer to requested fixtures we saved previously. 16:32:23 # We make sure to do this after checking for cached value to avoid 16:32:23 # adding our finalizer multiple times. (#12135) 16:32:23 finalizer = functools.partial(self.finish, request=request) 16:32:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:23 parent_fixture.addfinalizer(finalizer) 16:32:23 16:32:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:23 # which is executed last. 16:32:23 > assert not self._finalizers 16:32:23 ^^^^^^^^^^^^^^^^^^^^ 16:32:23 E AssertionError 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:23 _ ERROR at setup of TestTransportPCEPortmapping.test_18_xpdr_device_not_connected _ 16:32:23 16:32:23 cls = 16:32:23 func = . at 0x7f3b4ce71da0> 16:32:23 when = 'setup' 16:32:23 reraise = (, ) 16:32:23 16:32:23 @classmethod 16:32:23 def from_call( 16:32:23 cls, 16:32:23 func: Callable[[], TResult], 16:32:23 when: Literal["collect", "setup", "call", "teardown"], 16:32:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:23 ) -> CallInfo[TResult]: 16:32:23 """Call func, wrapping the result in a CallInfo. 16:32:23 16:32:23 :param func: 16:32:23 The function to call. Called without arguments. 16:32:23 :type func: Callable[[], _pytest.runner.TResult] 16:32:23 :param when: 16:32:23 The phase in which the function is called. 16:32:23 :param reraise: 16:32:23 Exception or exceptions that shall propagate if raised by the 16:32:23 function, instead of being wrapped in the CallInfo. 16:32:23 """ 16:32:23 excinfo = None 16:32:23 instant = timing.Instant() 16:32:23 try: 16:32:23 > result: TResult | None = func() 16:32:23 ^^^^^^ 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:23 lambda: runtest_hook(item=item, **kwds), 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:23 yield 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:23 return (yield) 16:32:23 ^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:23 item.session._setupstate.setup(item) 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:23 col.setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:23 super().setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:23 self._request._fillfixtures() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:23 fixturedef = self._get_active_fixturedef(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:23 fixturedef.execute(request=subrequest) 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 16:32:23 self = 16:32:23 request = > 16:32:23 16:32:23 def execute(self, request: SubRequest) -> FixtureValue: 16:32:23 """Return the value of this fixture, executing it if not cached.""" 16:32:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:23 # This needs to be done before checking if we have a cached value, since 16:32:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:23 # parametrization, they finalize themselves and fixtures depending on it 16:32:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:23 # See #4871 16:32:23 requested_fixtures_that_should_finalize_us = [] 16:32:23 for argname in self.argnames: 16:32:23 fixturedef = request._get_active_fixturedef(argname) 16:32:23 # Saves requested fixtures in a list so we later can add our finalizer 16:32:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:23 # down first. This is generally handled by SetupState, but still currently 16:32:23 # needed when this fixture is not parametrized but depends on a parametrized 16:32:23 # fixture. 16:32:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:23 16:32:23 # Check for (and return) cached value/exception. 16:32:23 if self.cached_result is not None: 16:32:23 request_cache_key = self.cache_key(request) 16:32:23 cache_key = self.cached_result[1] 16:32:23 try: 16:32:23 # Attempt to make a normal == check: this might fail for objects 16:32:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:23 cache_hit = bool(request_cache_key == cache_key) 16:32:23 except (ValueError, RuntimeError): 16:32:23 # If the comparison raises, use 'is' as fallback. 16:32:23 cache_hit = request_cache_key is cache_key 16:32:23 16:32:23 if cache_hit: 16:32:23 if self.cached_result[2] is not None: 16:32:23 exc, exc_tb = self.cached_result[2] 16:32:23 raise exc.with_traceback(exc_tb) 16:32:23 else: 16:32:23 return self.cached_result[0] 16:32:23 # We have a previous but differently parametrized fixture instance 16:32:23 # so we need to tear it down before creating a new one. 16:32:23 self.finish(request) 16:32:23 assert self.cached_result is None 16:32:23 16:32:23 # Add finalizer to requested fixtures we saved previously. 16:32:23 # We make sure to do this after checking for cached value to avoid 16:32:23 # adding our finalizer multiple times. (#12135) 16:32:23 finalizer = functools.partial(self.finish, request=request) 16:32:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:23 parent_fixture.addfinalizer(finalizer) 16:32:23 16:32:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:23 # which is executed last. 16:32:23 > assert not self._finalizers 16:32:23 ^^^^^^^^^^^^^^^^^^^^ 16:32:23 E AssertionError 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:23 _ ERROR at setup of TestTransportPCEPortmapping.test_19_rdm_device_disconnection _ 16:32:23 16:32:23 cls = 16:32:23 func = . at 0x7f3b4cea2840> 16:32:23 when = 'setup' 16:32:23 reraise = (, ) 16:32:23 16:32:23 @classmethod 16:32:23 def from_call( 16:32:23 cls, 16:32:23 func: Callable[[], TResult], 16:32:23 when: Literal["collect", "setup", "call", "teardown"], 16:32:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:23 ) -> CallInfo[TResult]: 16:32:23 """Call func, wrapping the result in a CallInfo. 16:32:23 16:32:23 :param func: 16:32:23 The function to call. Called without arguments. 16:32:23 :type func: Callable[[], _pytest.runner.TResult] 16:32:23 :param when: 16:32:23 The phase in which the function is called. 16:32:23 :param reraise: 16:32:23 Exception or exceptions that shall propagate if raised by the 16:32:23 function, instead of being wrapped in the CallInfo. 16:32:23 """ 16:32:23 excinfo = None 16:32:23 instant = timing.Instant() 16:32:23 try: 16:32:23 > result: TResult | None = func() 16:32:23 ^^^^^^ 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:23 lambda: runtest_hook(item=item, **kwds), 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:23 yield 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:23 return (yield) 16:32:23 ^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:23 item.session._setupstate.setup(item) 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:23 col.setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:23 super().setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:23 self._request._fillfixtures() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:23 fixturedef = self._get_active_fixturedef(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:23 fixturedef.execute(request=subrequest) 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 16:32:23 self = 16:32:23 request = > 16:32:23 16:32:23 def execute(self, request: SubRequest) -> FixtureValue: 16:32:23 """Return the value of this fixture, executing it if not cached.""" 16:32:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:23 # This needs to be done before checking if we have a cached value, since 16:32:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:23 # parametrization, they finalize themselves and fixtures depending on it 16:32:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:23 # See #4871 16:32:23 requested_fixtures_that_should_finalize_us = [] 16:32:23 for argname in self.argnames: 16:32:23 fixturedef = request._get_active_fixturedef(argname) 16:32:23 # Saves requested fixtures in a list so we later can add our finalizer 16:32:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:23 # down first. This is generally handled by SetupState, but still currently 16:32:23 # needed when this fixture is not parametrized but depends on a parametrized 16:32:23 # fixture. 16:32:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:23 16:32:23 # Check for (and return) cached value/exception. 16:32:23 if self.cached_result is not None: 16:32:23 request_cache_key = self.cache_key(request) 16:32:23 cache_key = self.cached_result[1] 16:32:23 try: 16:32:23 # Attempt to make a normal == check: this might fail for objects 16:32:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:23 cache_hit = bool(request_cache_key == cache_key) 16:32:23 except (ValueError, RuntimeError): 16:32:23 # If the comparison raises, use 'is' as fallback. 16:32:23 cache_hit = request_cache_key is cache_key 16:32:23 16:32:23 if cache_hit: 16:32:23 if self.cached_result[2] is not None: 16:32:23 exc, exc_tb = self.cached_result[2] 16:32:23 raise exc.with_traceback(exc_tb) 16:32:23 else: 16:32:23 return self.cached_result[0] 16:32:23 # We have a previous but differently parametrized fixture instance 16:32:23 # so we need to tear it down before creating a new one. 16:32:23 self.finish(request) 16:32:23 assert self.cached_result is None 16:32:23 16:32:23 # Add finalizer to requested fixtures we saved previously. 16:32:23 # We make sure to do this after checking for cached value to avoid 16:32:23 # adding our finalizer multiple times. (#12135) 16:32:23 finalizer = functools.partial(self.finish, request=request) 16:32:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:23 parent_fixture.addfinalizer(finalizer) 16:32:23 16:32:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:23 # which is executed last. 16:32:23 > assert not self._finalizers 16:32:23 ^^^^^^^^^^^^^^^^^^^^ 16:32:23 E AssertionError 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:23 _ ERROR at setup of TestTransportPCEPortmapping.test_20_rdm_device_disconnected _ 16:32:23 16:32:23 cls = 16:32:23 func = . at 0x7f3b4ca75d00> 16:32:23 when = 'setup' 16:32:23 reraise = (, ) 16:32:23 16:32:23 @classmethod 16:32:23 def from_call( 16:32:23 cls, 16:32:23 func: Callable[[], TResult], 16:32:23 when: Literal["collect", "setup", "call", "teardown"], 16:32:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:23 ) -> CallInfo[TResult]: 16:32:23 """Call func, wrapping the result in a CallInfo. 16:32:23 16:32:23 :param func: 16:32:23 The function to call. Called without arguments. 16:32:23 :type func: Callable[[], _pytest.runner.TResult] 16:32:23 :param when: 16:32:23 The phase in which the function is called. 16:32:23 :param reraise: 16:32:23 Exception or exceptions that shall propagate if raised by the 16:32:23 function, instead of being wrapped in the CallInfo. 16:32:23 """ 16:32:23 excinfo = None 16:32:23 instant = timing.Instant() 16:32:23 try: 16:32:23 > result: TResult | None = func() 16:32:23 ^^^^^^ 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:23 lambda: runtest_hook(item=item, **kwds), 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:23 yield 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:23 return (yield) 16:32:23 ^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:23 item.session._setupstate.setup(item) 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:23 col.setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:23 super().setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:23 self._request._fillfixtures() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:23 fixturedef = self._get_active_fixturedef(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:23 fixturedef.execute(request=subrequest) 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 16:32:23 self = 16:32:23 request = > 16:32:23 16:32:23 def execute(self, request: SubRequest) -> FixtureValue: 16:32:23 """Return the value of this fixture, executing it if not cached.""" 16:32:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:23 # This needs to be done before checking if we have a cached value, since 16:32:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:23 # parametrization, they finalize themselves and fixtures depending on it 16:32:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:23 # See #4871 16:32:23 requested_fixtures_that_should_finalize_us = [] 16:32:23 for argname in self.argnames: 16:32:23 fixturedef = request._get_active_fixturedef(argname) 16:32:23 # Saves requested fixtures in a list so we later can add our finalizer 16:32:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:23 # down first. This is generally handled by SetupState, but still currently 16:32:23 # needed when this fixture is not parametrized but depends on a parametrized 16:32:23 # fixture. 16:32:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:23 16:32:23 # Check for (and return) cached value/exception. 16:32:23 if self.cached_result is not None: 16:32:23 request_cache_key = self.cache_key(request) 16:32:23 cache_key = self.cached_result[1] 16:32:23 try: 16:32:23 # Attempt to make a normal == check: this might fail for objects 16:32:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:23 cache_hit = bool(request_cache_key == cache_key) 16:32:23 except (ValueError, RuntimeError): 16:32:23 # If the comparison raises, use 'is' as fallback. 16:32:23 cache_hit = request_cache_key is cache_key 16:32:23 16:32:23 if cache_hit: 16:32:23 if self.cached_result[2] is not None: 16:32:23 exc, exc_tb = self.cached_result[2] 16:32:23 raise exc.with_traceback(exc_tb) 16:32:23 else: 16:32:23 return self.cached_result[0] 16:32:23 # We have a previous but differently parametrized fixture instance 16:32:23 # so we need to tear it down before creating a new one. 16:32:23 self.finish(request) 16:32:23 assert self.cached_result is None 16:32:23 16:32:23 # Add finalizer to requested fixtures we saved previously. 16:32:23 # We make sure to do this after checking for cached value to avoid 16:32:23 # adding our finalizer multiple times. (#12135) 16:32:23 finalizer = functools.partial(self.finish, request=request) 16:32:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:23 parent_fixture.addfinalizer(finalizer) 16:32:23 16:32:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:23 # which is executed last. 16:32:23 > assert not self._finalizers 16:32:23 ^^^^^^^^^^^^^^^^^^^^ 16:32:23 E AssertionError 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:23 _ ERROR at setup of TestTransportPCEPortmapping.test_21_rdm_device_not_connected _ 16:32:23 16:32:23 cls = 16:32:23 func = . at 0x7f3b4ce71bc0> 16:32:23 when = 'setup' 16:32:23 reraise = (, ) 16:32:23 16:32:23 @classmethod 16:32:23 def from_call( 16:32:23 cls, 16:32:23 func: Callable[[], TResult], 16:32:23 when: Literal["collect", "setup", "call", "teardown"], 16:32:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:23 ) -> CallInfo[TResult]: 16:32:23 """Call func, wrapping the result in a CallInfo. 16:32:23 16:32:23 :param func: 16:32:23 The function to call. Called without arguments. 16:32:23 :type func: Callable[[], _pytest.runner.TResult] 16:32:23 :param when: 16:32:23 The phase in which the function is called. 16:32:23 :param reraise: 16:32:23 Exception or exceptions that shall propagate if raised by the 16:32:23 function, instead of being wrapped in the CallInfo. 16:32:23 """ 16:32:23 excinfo = None 16:32:23 instant = timing.Instant() 16:32:23 try: 16:32:23 > result: TResult | None = func() 16:32:23 ^^^^^^ 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:23 lambda: runtest_hook(item=item, **kwds), 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:23 yield 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:23 return (yield) 16:32:23 ^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:23 item.session._setupstate.setup(item) 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:23 col.setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:23 super().setup() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:23 self._request._fillfixtures() 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:23 fixturedef = self._get_active_fixturedef(argname) 16:32:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:23 fixturedef.execute(request=subrequest) 16:32:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:23 16:32:23 self = 16:32:23 request = > 16:32:23 16:32:23 def execute(self, request: SubRequest) -> FixtureValue: 16:32:23 """Return the value of this fixture, executing it if not cached.""" 16:32:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:23 # This needs to be done before checking if we have a cached value, since 16:32:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:23 # parametrization, they finalize themselves and fixtures depending on it 16:32:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:23 # See #4871 16:32:23 requested_fixtures_that_should_finalize_us = [] 16:32:23 for argname in self.argnames: 16:32:23 fixturedef = request._get_active_fixturedef(argname) 16:32:23 # Saves requested fixtures in a list so we later can add our finalizer 16:32:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:23 # down first. This is generally handled by SetupState, but still currently 16:32:23 # needed when this fixture is not parametrized but depends on a parametrized 16:32:23 # fixture. 16:32:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:23 16:32:23 # Check for (and return) cached value/exception. 16:32:23 if self.cached_result is not None: 16:32:23 request_cache_key = self.cache_key(request) 16:32:23 cache_key = self.cached_result[1] 16:32:23 try: 16:32:23 # Attempt to make a normal == check: this might fail for objects 16:32:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:23 cache_hit = bool(request_cache_key == cache_key) 16:32:23 except (ValueError, RuntimeError): 16:32:23 # If the comparison raises, use 'is' as fallback. 16:32:23 cache_hit = request_cache_key is cache_key 16:32:23 16:32:23 if cache_hit: 16:32:23 if self.cached_result[2] is not None: 16:32:23 exc, exc_tb = self.cached_result[2] 16:32:23 raise exc.with_traceback(exc_tb) 16:32:23 else: 16:32:23 return self.cached_result[0] 16:32:23 # We have a previous but differently parametrized fixture instance 16:32:23 # so we need to tear it down before creating a new one. 16:32:23 self.finish(request) 16:32:23 assert self.cached_result is None 16:32:23 16:32:23 # Add finalizer to requested fixtures we saved previously. 16:32:23 # We make sure to do this after checking for cached value to avoid 16:32:23 # adding our finalizer multiple times. (#12135) 16:32:23 finalizer = functools.partial(self.finish, request=request) 16:32:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:23 parent_fixture.addfinalizer(finalizer) 16:32:23 16:32:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:23 # which is executed last. 16:32:23 > assert not self._finalizers 16:32:23 ^^^^^^^^^^^^^^^^^^^^ 16:32:23 E AssertionError 16:32:23 16:32:23 ../.tox/tests121/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:23 =========================== short test summary info ============================ 16:32:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 16:32:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 16:32:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 16:32:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 16:32:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_SRG1_PP7_TXRX 16:32:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG3_PP1_TXRX 16:32:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_xpdr_device_connection 16:32:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connected 16:32:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_portmapping_info 16:32:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_NETWORK1 16:32:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK2 16:32:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_CLIENT1 16:32:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_CLIENT2 16:32:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_CLIENT3 16:32:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_xpdr_portmapping_CLIENT4 16:32:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_xpdr_device_disconnection 16:32:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_xpdr_device_disconnected 16:32:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_xpdr_device_not_connected 16:32:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_rdm_device_disconnection 16:32:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_rdm_device_disconnected 16:32:23 ERROR transportpce_tests/1.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_rdm_device_not_connected 16:32:23 21 errors in 104.30s (0:01:44) 16:32:23 tests121: exit 1 (104.60 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh 1.2.1 pid=4799 16:32:23 EEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 16:32:28 ==================================== ERRORS ==================================== 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_01_get_tapi_topology_T100G _ 16:32:28 16:32:28 cls = 16:32:28 16:32:28 @classmethod 16:32:28 def setUpClass(cls): 16:32:28 cls.init_failed = False 16:32:28 os.environ['JAVA_MIN_MEM'] = '1024M' 16:32:28 os.environ['JAVA_MAX_MEM'] = '4096M' 16:32:28 > cls.processes = test_utils.start_tpce() 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 16:32:28 transportpce_tests/tapi/test01_abstracted_topology.py:148: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 def start_tpce(): 16:32:28 if 'NO_ODL_STARTUP' in os.environ: 16:32:28 print('No OpenDaylight instance to start!') 16:32:28 return [] 16:32:28 print('starting OpenDaylight...') 16:32:28 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 16:32:28 process = start_lighty() 16:32:28 else: 16:32:28 process = start_karaf() 16:32:28 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 16:32:28 print('OpenDaylight started !') 16:32:28 else: 16:32:28 print('OpenDaylight failed to start !') 16:32:28 shutdown_process(process) 16:32:28 for pid in process_list: 16:32:28 shutdown_process(pid) 16:32:28 > sys.exit(1) 16:32:28 E SystemExit: 1 16:32:28 16:32:28 transportpce_tests/common/test_utils.py:233: SystemExit 16:32:28 ---------------------------- Captured stdout setup ----------------------------- 16:32:28 starting OpenDaylight... 16:32:28 starting KARAF (karaf221) TransportPCE build... 16:32:28 Pattern not found after 100 seconds! OpenDaylight failed to start ! 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_02_get_tapi_topology_T0 _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8e11bc0> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_03_connect_rdmb ___ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8e5f4c0> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_04_check_tapi_topos _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4caa5eb380> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_05_disconnect_roadmb _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4cab523740> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_06_connect_xpdra __ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8e5f560> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_07_check_tapi_topos _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4cab4d51c0> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_08_connect_rdma ___ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8e5e700> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_09_connect_rdmc ___ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8e5f880> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_10_check_tapi_topos _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8e11bc0> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_11_connect_xpdra_n1_to_roadma_pp1 _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4cab4d51c0> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_12_connect_roadma_pp1_to_xpdra_n1 _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8e5e700> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_13_check_tapi_topology_T100G _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4cab4d51c0> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_14_check_tapi_topology_T0 _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8e11bc0> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_15_connect_xpdrc __ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8e5e700> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_16_connect_xpdrc_n1_to_roadmc_pp1 _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4cab4d51c0> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_17_connect_roadmc_pp1_to_xpdrc_n1 _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8e5ee80> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_18_check_tapi_topology_T100G _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8e5e660> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_19_check_tapi_topology_T0 _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4cab4d51c0> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_20_connect_spdr_sa1 _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8e5ed40> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_21_connect_spdr_sc1 _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4cab4d51c0> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_22_check_tapi_topology_T100G _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8e5e660> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_23_check_tapi_topology_T0 _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8bf9a80> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_24_connect_sprda_n1_to_roadma_pp2 _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8e10e00> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_25_connect_roadma_pp2_to_spdra_n1 _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4cab4d51c0> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_26_connect_sprdc_n1_to_roadmc_pp2 _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8bf9c60> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_27_connect_roadmc_pp2_to_spdrc_n1 _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4cab4d51c0> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_28_check_tapi_topology_T100G _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8e10e00> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_29_check_tapi_topology_T0 _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8bf9f80> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_30_add_oms_attributes _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8e5e700> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_31_create_OCH_OTU4_service _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4cab4d51c0> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8bf9260> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_33_create_ODU4_service _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8e5e700> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8bf93a0> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_35_connect_sprda_2_n2_to_roadma_pp3 _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8bf9120> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_36_connect_roadma_pp3_to_spdra_2_n2 _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8e5e700> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8bfa480> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_38_delete_ODU4_service _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8e5e700> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_39_delete_OCH_OTU4_service _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8bf8900> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_40_check_tapi_topology_T0 _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8bfaa20> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_41_disconnect_xponders_from_roadm _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8e5e700> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_42_check_tapi_topology_T0 _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8bf8720> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_43_get_tapi_topology_T100G _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8bf8ea0> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_44_disconnect_roadma _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8e5e700> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_45_disconnect_roadmc _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8bf9a80> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_46_check_tapi_topos _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8bf9260> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_47_disconnect_xpdra _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8e5e700> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_48_disconnect_xpdrc _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8bfa020> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_49_disconnect_spdr_sa1 _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8bf94e0> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_50_disconnect_spdr_sc1 _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8e5e700> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_51_check_uninstall_Tapi_Feature _ 16:32:28 16:32:28 cls = 16:32:28 func = . at 0x7f4ca8bfb560> 16:32:28 when = 'setup' 16:32:28 reraise = (, ) 16:32:28 16:32:28 @classmethod 16:32:28 def from_call( 16:32:28 cls, 16:32:28 func: Callable[[], TResult], 16:32:28 when: Literal["collect", "setup", "call", "teardown"], 16:32:28 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:32:28 ) -> CallInfo[TResult]: 16:32:28 """Call func, wrapping the result in a CallInfo. 16:32:28 16:32:28 :param func: 16:32:28 The function to call. Called without arguments. 16:32:28 :type func: Callable[[], _pytest.runner.TResult] 16:32:28 :param when: 16:32:28 The phase in which the function is called. 16:32:28 :param reraise: 16:32:28 Exception or exceptions that shall propagate if raised by the 16:32:28 function, instead of being wrapped in the CallInfo. 16:32:28 """ 16:32:28 excinfo = None 16:32:28 instant = timing.Instant() 16:32:28 try: 16:32:28 > result: TResult | None = func() 16:32:28 ^^^^^^ 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:32:28 lambda: runtest_hook(item=item, **kwds), 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:32:28 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:32:28 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:32:28 yield 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:32:28 return (yield) 16:32:28 ^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:32:28 item.session._setupstate.setup(item) 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:32:28 col.setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:32:28 super().setup() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:32:28 self._request._fillfixtures() 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:32:28 item.funcargs[argname] = self.getfixturevalue(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:32:28 fixturedef = self._get_active_fixturedef(argname) 16:32:28 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:32:28 fixturedef.execute(request=subrequest) 16:32:28 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:32:28 16:32:28 self = 16:32:28 request = > 16:32:28 16:32:28 def execute(self, request: SubRequest) -> FixtureValue: 16:32:28 """Return the value of this fixture, executing it if not cached.""" 16:32:28 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:32:28 # This needs to be done before checking if we have a cached value, since 16:32:28 # if a dependent fixture has their cache invalidated, e.g. due to 16:32:28 # parametrization, they finalize themselves and fixtures depending on it 16:32:28 # (which will likely include this fixture) setting `self.cached_result = None`. 16:32:28 # See #4871 16:32:28 requested_fixtures_that_should_finalize_us = [] 16:32:28 for argname in self.argnames: 16:32:28 fixturedef = request._get_active_fixturedef(argname) 16:32:28 # Saves requested fixtures in a list so we later can add our finalizer 16:32:28 # to them, ensuring that if a requested fixture gets torn down we get torn 16:32:28 # down first. This is generally handled by SetupState, but still currently 16:32:28 # needed when this fixture is not parametrized but depends on a parametrized 16:32:28 # fixture. 16:32:28 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:32:28 16:32:28 # Check for (and return) cached value/exception. 16:32:28 if self.cached_result is not None: 16:32:28 request_cache_key = self.cache_key(request) 16:32:28 cache_key = self.cached_result[1] 16:32:28 try: 16:32:28 # Attempt to make a normal == check: this might fail for objects 16:32:28 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:32:28 cache_hit = bool(request_cache_key == cache_key) 16:32:28 except (ValueError, RuntimeError): 16:32:28 # If the comparison raises, use 'is' as fallback. 16:32:28 cache_hit = request_cache_key is cache_key 16:32:28 16:32:28 if cache_hit: 16:32:28 if self.cached_result[2] is not None: 16:32:28 exc, exc_tb = self.cached_result[2] 16:32:28 raise exc.with_traceback(exc_tb) 16:32:28 else: 16:32:28 return self.cached_result[0] 16:32:28 # We have a previous but differently parametrized fixture instance 16:32:28 # so we need to tear it down before creating a new one. 16:32:28 self.finish(request) 16:32:28 assert self.cached_result is None 16:32:28 16:32:28 # Add finalizer to requested fixtures we saved previously. 16:32:28 # We make sure to do this after checking for cached value to avoid 16:32:28 # adding our finalizer multiple times. (#12135) 16:32:28 finalizer = functools.partial(self.finish, request=request) 16:32:28 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:32:28 parent_fixture.addfinalizer(finalizer) 16:32:28 16:32:28 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:32:28 # which is executed last. 16:32:28 > assert not self._finalizers 16:32:28 ^^^^^^^^^^^^^^^^^^^^ 16:32:28 E AssertionError 16:32:28 16:32:28 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:32:28 =========================== short test summary info ============================ 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_01_get_tapi_topology_T100G 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_02_get_tapi_topology_T0 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_03_connect_rdmb 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_04_check_tapi_topos 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_05_disconnect_roadmb 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_06_connect_xpdra 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_07_check_tapi_topos 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_08_connect_rdma 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_09_connect_rdmc 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_10_check_tapi_topos 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_11_connect_xpdra_n1_to_roadma_pp1 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_12_connect_roadma_pp1_to_xpdra_n1 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_13_check_tapi_topology_T100G 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_14_check_tapi_topology_T0 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_15_connect_xpdrc 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_16_connect_xpdrc_n1_to_roadmc_pp1 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_17_connect_roadmc_pp1_to_xpdrc_n1 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_18_check_tapi_topology_T100G 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_19_check_tapi_topology_T0 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_20_connect_spdr_sa1 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_21_connect_spdr_sc1 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_22_check_tapi_topology_T100G 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_23_check_tapi_topology_T0 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_24_connect_sprda_n1_to_roadma_pp2 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_25_connect_roadma_pp2_to_spdra_n1 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_26_connect_sprdc_n1_to_roadmc_pp2 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_27_connect_roadmc_pp2_to_spdrc_n1 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_28_check_tapi_topology_T100G 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_29_check_tapi_topology_T0 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_30_add_oms_attributes 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_31_create_OCH_OTU4_service 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_33_create_ODU4_service 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_35_connect_sprda_2_n2_to_roadma_pp3 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_36_connect_roadma_pp3_to_spdra_2_n2 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_38_delete_ODU4_service 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_39_delete_OCH_OTU4_service 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_40_check_tapi_topology_T0 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_41_disconnect_xponders_from_roadm 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_42_check_tapi_topology_T0 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_43_get_tapi_topology_T100G 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_44_disconnect_roadma 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_45_disconnect_roadmc 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_46_check_tapi_topos 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_47_disconnect_xpdra 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_48_disconnect_xpdrc 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_49_disconnect_spdr_sa1 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_50_disconnect_spdr_sc1 16:32:28 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_51_check_uninstall_Tapi_Feature 16:32:28 51 errors in 109.64s (0:01:49) 16:32:29 tests121: FAIL ✖ in 1 minute 52.49 seconds 16:32:29 tests_tapi: exit 1 (109.93 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh tapi pid=4788 16:32:29 tests_tapi: FAIL ✖ in 1 minute 57.79 seconds 16:32:29 tests200: 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:32:29 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:32:36 tests221: freeze> python -m pip freeze --all 16:32:36 tests200: freeze> python -m pip freeze --all 16:32:36 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:32:36 tests221: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh 2.2.1 16:32:36 using environment variables from ./karaf221.env 16:32:36 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 16:32:37 tests200: 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:32:37 tests200: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh oc200 16:32:37 using environment variables from ./karafoc200.env 16:32:37 pytest -q transportpce_tests/oc200/test01_portmapping.py 16:34:17 EEEEEEEEEEEEEEEEEEEE [100%] 16:34:19 ==================================== ERRORS ==================================== 16:34:19 __ ERROR at setup of TestTransportPCEPortmapping.test_01_meta_data_insertion ___ 16:34:19 16:34:19 cls = 16:34:19 16:34:19 @classmethod 16:34:19 def setUpClass(cls): 16:34:19 > cls.processes = test_utils.start_tpce() 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 16:34:19 transportpce_tests/oc200/test01_portmapping.py:29: 16:34:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:19 16:34:19 def start_tpce(): 16:34:19 if 'NO_ODL_STARTUP' in os.environ: 16:34:19 print('No OpenDaylight instance to start!') 16:34:19 return [] 16:34:19 print('starting OpenDaylight...') 16:34:19 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 16:34:19 process = start_lighty() 16:34:19 else: 16:34:19 process = start_karaf() 16:34:19 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 16:34:19 print('OpenDaylight started !') 16:34:19 else: 16:34:19 print('OpenDaylight failed to start !') 16:34:19 shutdown_process(process) 16:34:19 for pid in process_list: 16:34:19 shutdown_process(pid) 16:34:19 > sys.exit(1) 16:34:19 E SystemExit: 1 16:34:19 16:34:19 transportpce_tests/common/test_utils.py:233: SystemExit 16:34:19 ---------------------------- Captured stdout setup ----------------------------- 16:34:19 starting OpenDaylight... 16:34:19 starting KARAF (karafoc200) TransportPCE build... 16:34:19 Pattern not found after 100 seconds! OpenDaylight failed to start ! 16:34:19 _ ERROR at setup of TestTransportPCEPortmapping.test_02_catalog_input_insertion _ 16:34:19 16:34:19 cls = 16:34:19 func = . at 0x7fc77ed91300> 16:34:19 when = 'setup' 16:34:19 reraise = (, ) 16:34:19 16:34:19 @classmethod 16:34:19 def from_call( 16:34:19 cls, 16:34:19 func: Callable[[], TResult], 16:34:19 when: Literal["collect", "setup", "call", "teardown"], 16:34:19 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:19 ) -> CallInfo[TResult]: 16:34:19 """Call func, wrapping the result in a CallInfo. 16:34:19 16:34:19 :param func: 16:34:19 The function to call. Called without arguments. 16:34:19 :type func: Callable[[], _pytest.runner.TResult] 16:34:19 :param when: 16:34:19 The phase in which the function is called. 16:34:19 :param reraise: 16:34:19 Exception or exceptions that shall propagate if raised by the 16:34:19 function, instead of being wrapped in the CallInfo. 16:34:19 """ 16:34:19 excinfo = None 16:34:19 instant = timing.Instant() 16:34:19 try: 16:34:19 > result: TResult | None = func() 16:34:19 ^^^^^^ 16:34:19 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:19 lambda: runtest_hook(item=item, **kwds), 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:19 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:19 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:19 yield 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:19 return (yield) 16:34:19 ^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:19 item.session._setupstate.setup(item) 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:19 col.setup() 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:19 super().setup() 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:19 self._request._fillfixtures() 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:19 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:19 fixturedef = self._get_active_fixturedef(argname) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:19 fixturedef.execute(request=subrequest) 16:34:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:19 16:34:19 self = 16:34:19 request = > 16:34:19 16:34:19 def execute(self, request: SubRequest) -> FixtureValue: 16:34:19 """Return the value of this fixture, executing it if not cached.""" 16:34:19 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:19 # This needs to be done before checking if we have a cached value, since 16:34:19 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:19 # parametrization, they finalize themselves and fixtures depending on it 16:34:19 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:19 # See #4871 16:34:19 requested_fixtures_that_should_finalize_us = [] 16:34:19 for argname in self.argnames: 16:34:19 fixturedef = request._get_active_fixturedef(argname) 16:34:19 # Saves requested fixtures in a list so we later can add our finalizer 16:34:19 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:19 # down first. This is generally handled by SetupState, but still currently 16:34:19 # needed when this fixture is not parametrized but depends on a parametrized 16:34:19 # fixture. 16:34:19 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:19 16:34:19 # Check for (and return) cached value/exception. 16:34:19 if self.cached_result is not None: 16:34:19 request_cache_key = self.cache_key(request) 16:34:19 cache_key = self.cached_result[1] 16:34:19 try: 16:34:19 # Attempt to make a normal == check: this might fail for objects 16:34:19 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:19 cache_hit = bool(request_cache_key == cache_key) 16:34:19 except (ValueError, RuntimeError): 16:34:19 # If the comparison raises, use 'is' as fallback. 16:34:19 cache_hit = request_cache_key is cache_key 16:34:19 16:34:19 if cache_hit: 16:34:19 if self.cached_result[2] is not None: 16:34:19 exc, exc_tb = self.cached_result[2] 16:34:19 raise exc.with_traceback(exc_tb) 16:34:19 else: 16:34:19 return self.cached_result[0] 16:34:19 # We have a previous but differently parametrized fixture instance 16:34:19 # so we need to tear it down before creating a new one. 16:34:19 self.finish(request) 16:34:19 assert self.cached_result is None 16:34:19 16:34:19 # Add finalizer to requested fixtures we saved previously. 16:34:19 # We make sure to do this after checking for cached value to avoid 16:34:19 # adding our finalizer multiple times. (#12135) 16:34:19 finalizer = functools.partial(self.finish, request=request) 16:34:19 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:19 parent_fixture.addfinalizer(finalizer) 16:34:19 16:34:19 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:19 # which is executed last. 16:34:19 > assert not self._finalizers 16:34:19 ^^^^^^^^^^^^^^^^^^^^ 16:34:19 E AssertionError 16:34:19 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:19 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_device_connection _ 16:34:19 16:34:19 cls = 16:34:19 func = . at 0x7fc77e677560> 16:34:19 when = 'setup' 16:34:19 reraise = (, ) 16:34:19 16:34:19 @classmethod 16:34:19 def from_call( 16:34:19 cls, 16:34:19 func: Callable[[], TResult], 16:34:19 when: Literal["collect", "setup", "call", "teardown"], 16:34:19 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:19 ) -> CallInfo[TResult]: 16:34:19 """Call func, wrapping the result in a CallInfo. 16:34:19 16:34:19 :param func: 16:34:19 The function to call. Called without arguments. 16:34:19 :type func: Callable[[], _pytest.runner.TResult] 16:34:19 :param when: 16:34:19 The phase in which the function is called. 16:34:19 :param reraise: 16:34:19 Exception or exceptions that shall propagate if raised by the 16:34:19 function, instead of being wrapped in the CallInfo. 16:34:19 """ 16:34:19 excinfo = None 16:34:19 instant = timing.Instant() 16:34:19 try: 16:34:19 > result: TResult | None = func() 16:34:19 ^^^^^^ 16:34:19 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:19 lambda: runtest_hook(item=item, **kwds), 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:19 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:19 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:19 yield 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:19 return (yield) 16:34:19 ^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:19 item.session._setupstate.setup(item) 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:19 col.setup() 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:19 super().setup() 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:19 self._request._fillfixtures() 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:19 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:19 fixturedef = self._get_active_fixturedef(argname) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:19 fixturedef.execute(request=subrequest) 16:34:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:19 16:34:19 self = 16:34:19 request = > 16:34:19 16:34:19 def execute(self, request: SubRequest) -> FixtureValue: 16:34:19 """Return the value of this fixture, executing it if not cached.""" 16:34:19 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:19 # This needs to be done before checking if we have a cached value, since 16:34:19 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:19 # parametrization, they finalize themselves and fixtures depending on it 16:34:19 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:19 # See #4871 16:34:19 requested_fixtures_that_should_finalize_us = [] 16:34:19 for argname in self.argnames: 16:34:19 fixturedef = request._get_active_fixturedef(argname) 16:34:19 # Saves requested fixtures in a list so we later can add our finalizer 16:34:19 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:19 # down first. This is generally handled by SetupState, but still currently 16:34:19 # needed when this fixture is not parametrized but depends on a parametrized 16:34:19 # fixture. 16:34:19 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:19 16:34:19 # Check for (and return) cached value/exception. 16:34:19 if self.cached_result is not None: 16:34:19 request_cache_key = self.cache_key(request) 16:34:19 cache_key = self.cached_result[1] 16:34:19 try: 16:34:19 # Attempt to make a normal == check: this might fail for objects 16:34:19 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:19 cache_hit = bool(request_cache_key == cache_key) 16:34:19 except (ValueError, RuntimeError): 16:34:19 # If the comparison raises, use 'is' as fallback. 16:34:19 cache_hit = request_cache_key is cache_key 16:34:19 16:34:19 if cache_hit: 16:34:19 if self.cached_result[2] is not None: 16:34:19 exc, exc_tb = self.cached_result[2] 16:34:19 raise exc.with_traceback(exc_tb) 16:34:19 else: 16:34:19 return self.cached_result[0] 16:34:19 # We have a previous but differently parametrized fixture instance 16:34:19 # so we need to tear it down before creating a new one. 16:34:19 self.finish(request) 16:34:19 assert self.cached_result is None 16:34:19 16:34:19 # Add finalizer to requested fixtures we saved previously. 16:34:19 # We make sure to do this after checking for cached value to avoid 16:34:19 # adding our finalizer multiple times. (#12135) 16:34:19 finalizer = functools.partial(self.finish, request=request) 16:34:19 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:19 parent_fixture.addfinalizer(finalizer) 16:34:19 16:34:19 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:19 # which is executed last. 16:34:19 > assert not self._finalizers 16:34:19 ^^^^^^^^^^^^^^^^^^^^ 16:34:19 E AssertionError 16:34:19 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:19 _ ERROR at setup of TestTransportPCEPortmapping.test_04_xpdr_device_connected __ 16:34:19 16:34:19 cls = 16:34:19 func = . at 0x7fc77ed8b420> 16:34:19 when = 'setup' 16:34:19 reraise = (, ) 16:34:19 16:34:19 @classmethod 16:34:19 def from_call( 16:34:19 cls, 16:34:19 func: Callable[[], TResult], 16:34:19 when: Literal["collect", "setup", "call", "teardown"], 16:34:19 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:19 ) -> CallInfo[TResult]: 16:34:19 """Call func, wrapping the result in a CallInfo. 16:34:19 16:34:19 :param func: 16:34:19 The function to call. Called without arguments. 16:34:19 :type func: Callable[[], _pytest.runner.TResult] 16:34:19 :param when: 16:34:19 The phase in which the function is called. 16:34:19 :param reraise: 16:34:19 Exception or exceptions that shall propagate if raised by the 16:34:19 function, instead of being wrapped in the CallInfo. 16:34:19 """ 16:34:19 excinfo = None 16:34:19 instant = timing.Instant() 16:34:19 try: 16:34:19 > result: TResult | None = func() 16:34:19 ^^^^^^ 16:34:19 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:19 lambda: runtest_hook(item=item, **kwds), 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:19 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:19 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:19 yield 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:19 return (yield) 16:34:19 ^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:19 item.session._setupstate.setup(item) 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:19 col.setup() 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:19 super().setup() 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:19 self._request._fillfixtures() 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:19 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:19 fixturedef = self._get_active_fixturedef(argname) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:19 fixturedef.execute(request=subrequest) 16:34:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:19 16:34:19 self = 16:34:19 request = > 16:34:19 16:34:19 def execute(self, request: SubRequest) -> FixtureValue: 16:34:19 """Return the value of this fixture, executing it if not cached.""" 16:34:19 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:19 # This needs to be done before checking if we have a cached value, since 16:34:19 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:19 # parametrization, they finalize themselves and fixtures depending on it 16:34:19 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:19 # See #4871 16:34:19 requested_fixtures_that_should_finalize_us = [] 16:34:19 for argname in self.argnames: 16:34:19 fixturedef = request._get_active_fixturedef(argname) 16:34:19 # Saves requested fixtures in a list so we later can add our finalizer 16:34:19 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:19 # down first. This is generally handled by SetupState, but still currently 16:34:19 # needed when this fixture is not parametrized but depends on a parametrized 16:34:19 # fixture. 16:34:19 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:19 16:34:19 # Check for (and return) cached value/exception. 16:34:19 if self.cached_result is not None: 16:34:19 request_cache_key = self.cache_key(request) 16:34:19 cache_key = self.cached_result[1] 16:34:19 try: 16:34:19 # Attempt to make a normal == check: this might fail for objects 16:34:19 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:19 cache_hit = bool(request_cache_key == cache_key) 16:34:19 except (ValueError, RuntimeError): 16:34:19 # If the comparison raises, use 'is' as fallback. 16:34:19 cache_hit = request_cache_key is cache_key 16:34:19 16:34:19 if cache_hit: 16:34:19 if self.cached_result[2] is not None: 16:34:19 exc, exc_tb = self.cached_result[2] 16:34:19 raise exc.with_traceback(exc_tb) 16:34:19 else: 16:34:19 return self.cached_result[0] 16:34:19 # We have a previous but differently parametrized fixture instance 16:34:19 # so we need to tear it down before creating a new one. 16:34:19 self.finish(request) 16:34:19 assert self.cached_result is None 16:34:19 16:34:19 # Add finalizer to requested fixtures we saved previously. 16:34:19 # We make sure to do this after checking for cached value to avoid 16:34:19 # adding our finalizer multiple times. (#12135) 16:34:19 finalizer = functools.partial(self.finish, request=request) 16:34:19 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:19 parent_fixture.addfinalizer(finalizer) 16:34:19 16:34:19 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:19 # which is executed last. 16:34:19 > assert not self._finalizers 16:34:19 ^^^^^^^^^^^^^^^^^^^^ 16:34:19 E AssertionError 16:34:19 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:19 _ ERROR at setup of TestTransportPCEPortmapping.test_05_xpdr_portmapping_info __ 16:34:19 16:34:19 cls = 16:34:19 func = . at 0x7fc780d8c4a0> 16:34:19 when = 'setup' 16:34:19 reraise = (, ) 16:34:19 16:34:19 @classmethod 16:34:19 def from_call( 16:34:19 cls, 16:34:19 func: Callable[[], TResult], 16:34:19 when: Literal["collect", "setup", "call", "teardown"], 16:34:19 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:19 ) -> CallInfo[TResult]: 16:34:19 """Call func, wrapping the result in a CallInfo. 16:34:19 16:34:19 :param func: 16:34:19 The function to call. Called without arguments. 16:34:19 :type func: Callable[[], _pytest.runner.TResult] 16:34:19 :param when: 16:34:19 The phase in which the function is called. 16:34:19 :param reraise: 16:34:19 Exception or exceptions that shall propagate if raised by the 16:34:19 function, instead of being wrapped in the CallInfo. 16:34:19 """ 16:34:19 excinfo = None 16:34:19 instant = timing.Instant() 16:34:19 try: 16:34:19 > result: TResult | None = func() 16:34:19 ^^^^^^ 16:34:19 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:19 lambda: runtest_hook(item=item, **kwds), 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:19 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:19 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:19 yield 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:19 return (yield) 16:34:19 ^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:19 item.session._setupstate.setup(item) 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:19 col.setup() 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:19 super().setup() 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:19 self._request._fillfixtures() 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:19 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:19 fixturedef = self._get_active_fixturedef(argname) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:19 fixturedef.execute(request=subrequest) 16:34:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:19 16:34:19 self = 16:34:19 request = > 16:34:19 16:34:19 def execute(self, request: SubRequest) -> FixtureValue: 16:34:19 """Return the value of this fixture, executing it if not cached.""" 16:34:19 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:19 # This needs to be done before checking if we have a cached value, since 16:34:19 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:19 # parametrization, they finalize themselves and fixtures depending on it 16:34:19 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:19 # See #4871 16:34:19 requested_fixtures_that_should_finalize_us = [] 16:34:19 for argname in self.argnames: 16:34:19 fixturedef = request._get_active_fixturedef(argname) 16:34:19 # Saves requested fixtures in a list so we later can add our finalizer 16:34:19 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:19 # down first. This is generally handled by SetupState, but still currently 16:34:19 # needed when this fixture is not parametrized but depends on a parametrized 16:34:19 # fixture. 16:34:19 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:19 16:34:19 # Check for (and return) cached value/exception. 16:34:19 if self.cached_result is not None: 16:34:19 request_cache_key = self.cache_key(request) 16:34:19 cache_key = self.cached_result[1] 16:34:19 try: 16:34:19 # Attempt to make a normal == check: this might fail for objects 16:34:19 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:19 cache_hit = bool(request_cache_key == cache_key) 16:34:19 except (ValueError, RuntimeError): 16:34:19 # If the comparison raises, use 'is' as fallback. 16:34:19 cache_hit = request_cache_key is cache_key 16:34:19 16:34:19 if cache_hit: 16:34:19 if self.cached_result[2] is not None: 16:34:19 exc, exc_tb = self.cached_result[2] 16:34:19 raise exc.with_traceback(exc_tb) 16:34:19 else: 16:34:19 return self.cached_result[0] 16:34:19 # We have a previous but differently parametrized fixture instance 16:34:19 # so we need to tear it down before creating a new one. 16:34:19 self.finish(request) 16:34:19 assert self.cached_result is None 16:34:19 16:34:19 # Add finalizer to requested fixtures we saved previously. 16:34:19 # We make sure to do this after checking for cached value to avoid 16:34:19 # adding our finalizer multiple times. (#12135) 16:34:19 finalizer = functools.partial(self.finish, request=request) 16:34:19 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:19 parent_fixture.addfinalizer(finalizer) 16:34:19 16:34:19 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:19 # which is executed last. 16:34:19 > assert not self._finalizers 16:34:19 ^^^^^^^^^^^^^^^^^^^^ 16:34:19 E AssertionError 16:34:19 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:19 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK5 _ 16:34:19 16:34:19 cls = 16:34:19 func = . at 0x7fc77e675b20> 16:34:19 when = 'setup' 16:34:19 reraise = (, ) 16:34:19 16:34:19 @classmethod 16:34:19 def from_call( 16:34:19 cls, 16:34:19 func: Callable[[], TResult], 16:34:19 when: Literal["collect", "setup", "call", "teardown"], 16:34:19 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:19 ) -> CallInfo[TResult]: 16:34:19 """Call func, wrapping the result in a CallInfo. 16:34:19 16:34:19 :param func: 16:34:19 The function to call. Called without arguments. 16:34:19 :type func: Callable[[], _pytest.runner.TResult] 16:34:19 :param when: 16:34:19 The phase in which the function is called. 16:34:19 :param reraise: 16:34:19 Exception or exceptions that shall propagate if raised by the 16:34:19 function, instead of being wrapped in the CallInfo. 16:34:19 """ 16:34:19 excinfo = None 16:34:19 instant = timing.Instant() 16:34:19 try: 16:34:19 > result: TResult | None = func() 16:34:19 ^^^^^^ 16:34:19 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:19 lambda: runtest_hook(item=item, **kwds), 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:19 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:19 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:19 yield 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:19 return (yield) 16:34:19 ^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:19 item.session._setupstate.setup(item) 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:19 col.setup() 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:19 super().setup() 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:19 self._request._fillfixtures() 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:19 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:19 fixturedef = self._get_active_fixturedef(argname) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:19 fixturedef.execute(request=subrequest) 16:34:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:19 16:34:19 self = 16:34:19 request = > 16:34:19 16:34:19 def execute(self, request: SubRequest) -> FixtureValue: 16:34:19 """Return the value of this fixture, executing it if not cached.""" 16:34:19 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:19 # This needs to be done before checking if we have a cached value, since 16:34:19 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:19 # parametrization, they finalize themselves and fixtures depending on it 16:34:19 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:19 # See #4871 16:34:19 requested_fixtures_that_should_finalize_us = [] 16:34:19 for argname in self.argnames: 16:34:19 fixturedef = request._get_active_fixturedef(argname) 16:34:19 # Saves requested fixtures in a list so we later can add our finalizer 16:34:19 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:19 # down first. This is generally handled by SetupState, but still currently 16:34:19 # needed when this fixture is not parametrized but depends on a parametrized 16:34:19 # fixture. 16:34:19 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:19 16:34:19 # Check for (and return) cached value/exception. 16:34:19 if self.cached_result is not None: 16:34:19 request_cache_key = self.cache_key(request) 16:34:19 cache_key = self.cached_result[1] 16:34:19 try: 16:34:19 # Attempt to make a normal == check: this might fail for objects 16:34:19 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:19 cache_hit = bool(request_cache_key == cache_key) 16:34:19 except (ValueError, RuntimeError): 16:34:19 # If the comparison raises, use 'is' as fallback. 16:34:19 cache_hit = request_cache_key is cache_key 16:34:19 16:34:19 if cache_hit: 16:34:19 if self.cached_result[2] is not None: 16:34:19 exc, exc_tb = self.cached_result[2] 16:34:19 raise exc.with_traceback(exc_tb) 16:34:19 else: 16:34:19 return self.cached_result[0] 16:34:19 # We have a previous but differently parametrized fixture instance 16:34:19 # so we need to tear it down before creating a new one. 16:34:19 self.finish(request) 16:34:19 assert self.cached_result is None 16:34:19 16:34:19 # Add finalizer to requested fixtures we saved previously. 16:34:19 # We make sure to do this after checking for cached value to avoid 16:34:19 # adding our finalizer multiple times. (#12135) 16:34:19 finalizer = functools.partial(self.finish, request=request) 16:34:19 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:19 parent_fixture.addfinalizer(finalizer) 16:34:19 16:34:19 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:19 # which is executed last. 16:34:19 > assert not self._finalizers 16:34:19 ^^^^^^^^^^^^^^^^^^^^ 16:34:19 E AssertionError 16:34:19 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:19 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 16:34:19 16:34:19 cls = 16:34:19 func = . at 0x7fc77fe43240> 16:34:19 when = 'setup' 16:34:19 reraise = (, ) 16:34:19 16:34:19 @classmethod 16:34:19 def from_call( 16:34:19 cls, 16:34:19 func: Callable[[], TResult], 16:34:19 when: Literal["collect", "setup", "call", "teardown"], 16:34:19 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:19 ) -> CallInfo[TResult]: 16:34:19 """Call func, wrapping the result in a CallInfo. 16:34:19 16:34:19 :param func: 16:34:19 The function to call. Called without arguments. 16:34:19 :type func: Callable[[], _pytest.runner.TResult] 16:34:19 :param when: 16:34:19 The phase in which the function is called. 16:34:19 :param reraise: 16:34:19 Exception or exceptions that shall propagate if raised by the 16:34:19 function, instead of being wrapped in the CallInfo. 16:34:19 """ 16:34:19 excinfo = None 16:34:19 instant = timing.Instant() 16:34:19 try: 16:34:19 > result: TResult | None = func() 16:34:19 ^^^^^^ 16:34:19 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:19 lambda: runtest_hook(item=item, **kwds), 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:19 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:19 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:19 yield 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:19 return (yield) 16:34:19 ^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:19 item.session._setupstate.setup(item) 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:19 col.setup() 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:19 super().setup() 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:19 self._request._fillfixtures() 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:19 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:19 fixturedef = self._get_active_fixturedef(argname) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:19 fixturedef.execute(request=subrequest) 16:34:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:19 16:34:19 self = 16:34:19 request = > 16:34:19 16:34:19 def execute(self, request: SubRequest) -> FixtureValue: 16:34:19 """Return the value of this fixture, executing it if not cached.""" 16:34:19 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:19 # This needs to be done before checking if we have a cached value, since 16:34:19 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:19 # parametrization, they finalize themselves and fixtures depending on it 16:34:19 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:19 # See #4871 16:34:19 requested_fixtures_that_should_finalize_us = [] 16:34:19 for argname in self.argnames: 16:34:19 fixturedef = request._get_active_fixturedef(argname) 16:34:19 # Saves requested fixtures in a list so we later can add our finalizer 16:34:19 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:19 # down first. This is generally handled by SetupState, but still currently 16:34:19 # needed when this fixture is not parametrized but depends on a parametrized 16:34:19 # fixture. 16:34:19 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:19 16:34:19 # Check for (and return) cached value/exception. 16:34:19 if self.cached_result is not None: 16:34:19 request_cache_key = self.cache_key(request) 16:34:19 cache_key = self.cached_result[1] 16:34:19 try: 16:34:19 # Attempt to make a normal == check: this might fail for objects 16:34:19 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:19 cache_hit = bool(request_cache_key == cache_key) 16:34:19 except (ValueError, RuntimeError): 16:34:19 # If the comparison raises, use 'is' as fallback. 16:34:19 cache_hit = request_cache_key is cache_key 16:34:19 16:34:19 if cache_hit: 16:34:19 if self.cached_result[2] is not None: 16:34:19 exc, exc_tb = self.cached_result[2] 16:34:19 raise exc.with_traceback(exc_tb) 16:34:19 else: 16:34:19 return self.cached_result[0] 16:34:19 # We have a previous but differently parametrized fixture instance 16:34:19 # so we need to tear it down before creating a new one. 16:34:19 self.finish(request) 16:34:19 assert self.cached_result is None 16:34:19 16:34:19 # Add finalizer to requested fixtures we saved previously. 16:34:19 # We make sure to do this after checking for cached value to avoid 16:34:19 # adding our finalizer multiple times. (#12135) 16:34:19 finalizer = functools.partial(self.finish, request=request) 16:34:19 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:19 parent_fixture.addfinalizer(finalizer) 16:34:19 16:34:19 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:19 # which is executed last. 16:34:19 > assert not self._finalizers 16:34:19 ^^^^^^^^^^^^^^^^^^^^ 16:34:19 E AssertionError 16:34:19 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:19 __ ERROR at setup of TestTransportPCEPortmapping.test_08_mpdr_switching_pool ___ 16:34:19 16:34:19 cls = 16:34:19 func = . at 0x7fc77ed91440> 16:34:19 when = 'setup' 16:34:19 reraise = (, ) 16:34:19 16:34:19 @classmethod 16:34:19 def from_call( 16:34:19 cls, 16:34:19 func: Callable[[], TResult], 16:34:19 when: Literal["collect", "setup", "call", "teardown"], 16:34:19 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:19 ) -> CallInfo[TResult]: 16:34:19 """Call func, wrapping the result in a CallInfo. 16:34:19 16:34:19 :param func: 16:34:19 The function to call. Called without arguments. 16:34:19 :type func: Callable[[], _pytest.runner.TResult] 16:34:19 :param when: 16:34:19 The phase in which the function is called. 16:34:19 :param reraise: 16:34:19 Exception or exceptions that shall propagate if raised by the 16:34:19 function, instead of being wrapped in the CallInfo. 16:34:19 """ 16:34:19 excinfo = None 16:34:19 instant = timing.Instant() 16:34:19 try: 16:34:19 > result: TResult | None = func() 16:34:19 ^^^^^^ 16:34:19 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:19 lambda: runtest_hook(item=item, **kwds), 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:19 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:19 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:19 yield 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:19 return (yield) 16:34:19 ^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:19 item.session._setupstate.setup(item) 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:19 col.setup() 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:19 super().setup() 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:19 self._request._fillfixtures() 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:19 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:19 fixturedef = self._get_active_fixturedef(argname) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:19 fixturedef.execute(request=subrequest) 16:34:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:19 16:34:19 self = 16:34:19 request = > 16:34:19 16:34:19 def execute(self, request: SubRequest) -> FixtureValue: 16:34:19 """Return the value of this fixture, executing it if not cached.""" 16:34:19 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:19 # This needs to be done before checking if we have a cached value, since 16:34:19 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:19 # parametrization, they finalize themselves and fixtures depending on it 16:34:19 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:19 # See #4871 16:34:19 requested_fixtures_that_should_finalize_us = [] 16:34:19 for argname in self.argnames: 16:34:19 fixturedef = request._get_active_fixturedef(argname) 16:34:19 # Saves requested fixtures in a list so we later can add our finalizer 16:34:19 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:19 # down first. This is generally handled by SetupState, but still currently 16:34:19 # needed when this fixture is not parametrized but depends on a parametrized 16:34:19 # fixture. 16:34:19 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:19 16:34:19 # Check for (and return) cached value/exception. 16:34:19 if self.cached_result is not None: 16:34:19 request_cache_key = self.cache_key(request) 16:34:19 cache_key = self.cached_result[1] 16:34:19 try: 16:34:19 # Attempt to make a normal == check: this might fail for objects 16:34:19 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:19 cache_hit = bool(request_cache_key == cache_key) 16:34:19 except (ValueError, RuntimeError): 16:34:19 # If the comparison raises, use 'is' as fallback. 16:34:19 cache_hit = request_cache_key is cache_key 16:34:19 16:34:19 if cache_hit: 16:34:19 if self.cached_result[2] is not None: 16:34:19 exc, exc_tb = self.cached_result[2] 16:34:19 raise exc.with_traceback(exc_tb) 16:34:19 else: 16:34:19 return self.cached_result[0] 16:34:19 # We have a previous but differently parametrized fixture instance 16:34:19 # so we need to tear it down before creating a new one. 16:34:19 self.finish(request) 16:34:19 assert self.cached_result is None 16:34:19 16:34:19 # Add finalizer to requested fixtures we saved previously. 16:34:19 # We make sure to do this after checking for cached value to avoid 16:34:19 # adding our finalizer multiple times. (#12135) 16:34:19 finalizer = functools.partial(self.finish, request=request) 16:34:19 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:19 parent_fixture.addfinalizer(finalizer) 16:34:19 16:34:19 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:19 # which is executed last. 16:34:19 > assert not self._finalizers 16:34:19 ^^^^^^^^^^^^^^^^^^^^ 16:34:19 E AssertionError 16:34:19 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:19 ___ ERROR at setup of TestTransportPCEPortmapping.test_09_check_mccapprofile ___ 16:34:19 16:34:19 cls = 16:34:19 func = . at 0x7fc77e675760> 16:34:19 when = 'setup' 16:34:19 reraise = (, ) 16:34:19 16:34:19 @classmethod 16:34:19 def from_call( 16:34:19 cls, 16:34:19 func: Callable[[], TResult], 16:34:19 when: Literal["collect", "setup", "call", "teardown"], 16:34:19 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:19 ) -> CallInfo[TResult]: 16:34:19 """Call func, wrapping the result in a CallInfo. 16:34:19 16:34:19 :param func: 16:34:19 The function to call. Called without arguments. 16:34:19 :type func: Callable[[], _pytest.runner.TResult] 16:34:19 :param when: 16:34:19 The phase in which the function is called. 16:34:19 :param reraise: 16:34:19 Exception or exceptions that shall propagate if raised by the 16:34:19 function, instead of being wrapped in the CallInfo. 16:34:19 """ 16:34:19 excinfo = None 16:34:19 instant = timing.Instant() 16:34:19 try: 16:34:19 > result: TResult | None = func() 16:34:19 ^^^^^^ 16:34:19 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:19 lambda: runtest_hook(item=item, **kwds), 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:19 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:19 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:19 yield 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:19 return (yield) 16:34:19 ^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:19 item.session._setupstate.setup(item) 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:19 col.setup() 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:19 super().setup() 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:19 self._request._fillfixtures() 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:19 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:19 fixturedef = self._get_active_fixturedef(argname) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:19 fixturedef.execute(request=subrequest) 16:34:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:19 16:34:19 self = 16:34:19 request = > 16:34:19 16:34:19 def execute(self, request: SubRequest) -> FixtureValue: 16:34:19 """Return the value of this fixture, executing it if not cached.""" 16:34:19 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:19 # This needs to be done before checking if we have a cached value, since 16:34:19 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:19 # parametrization, they finalize themselves and fixtures depending on it 16:34:19 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:19 # See #4871 16:34:19 requested_fixtures_that_should_finalize_us = [] 16:34:19 for argname in self.argnames: 16:34:19 fixturedef = request._get_active_fixturedef(argname) 16:34:19 # Saves requested fixtures in a list so we later can add our finalizer 16:34:19 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:19 # down first. This is generally handled by SetupState, but still currently 16:34:19 # needed when this fixture is not parametrized but depends on a parametrized 16:34:19 # fixture. 16:34:19 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:19 16:34:19 # Check for (and return) cached value/exception. 16:34:19 if self.cached_result is not None: 16:34:19 request_cache_key = self.cache_key(request) 16:34:19 cache_key = self.cached_result[1] 16:34:19 try: 16:34:19 # Attempt to make a normal == check: this might fail for objects 16:34:19 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:19 cache_hit = bool(request_cache_key == cache_key) 16:34:19 except (ValueError, RuntimeError): 16:34:19 # If the comparison raises, use 'is' as fallback. 16:34:19 cache_hit = request_cache_key is cache_key 16:34:19 16:34:19 if cache_hit: 16:34:19 if self.cached_result[2] is not None: 16:34:19 exc, exc_tb = self.cached_result[2] 16:34:19 raise exc.with_traceback(exc_tb) 16:34:19 else: 16:34:19 return self.cached_result[0] 16:34:19 # We have a previous but differently parametrized fixture instance 16:34:19 # so we need to tear it down before creating a new one. 16:34:19 self.finish(request) 16:34:19 assert self.cached_result is None 16:34:19 16:34:19 # Add finalizer to requested fixtures we saved previously. 16:34:19 # We make sure to do this after checking for cached value to avoid 16:34:19 # adding our finalizer multiple times. (#12135) 16:34:19 finalizer = functools.partial(self.finish, request=request) 16:34:19 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:19 parent_fixture.addfinalizer(finalizer) 16:34:19 16:34:19 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:19 # which is executed last. 16:34:19 > assert not self._finalizers 16:34:19 ^^^^^^^^^^^^^^^^^^^^ 16:34:19 E AssertionError 16:34:19 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:19 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 16:34:19 16:34:19 cls = 16:34:19 func = . at 0x7fc77fe43240> 16:34:19 when = 'setup' 16:34:19 reraise = (, ) 16:34:19 16:34:19 @classmethod 16:34:19 def from_call( 16:34:19 cls, 16:34:19 func: Callable[[], TResult], 16:34:19 when: Literal["collect", "setup", "call", "teardown"], 16:34:19 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:19 ) -> CallInfo[TResult]: 16:34:19 """Call func, wrapping the result in a CallInfo. 16:34:19 16:34:19 :param func: 16:34:19 The function to call. Called without arguments. 16:34:19 :type func: Callable[[], _pytest.runner.TResult] 16:34:19 :param when: 16:34:19 The phase in which the function is called. 16:34:19 :param reraise: 16:34:19 Exception or exceptions that shall propagate if raised by the 16:34:19 function, instead of being wrapped in the CallInfo. 16:34:19 """ 16:34:19 excinfo = None 16:34:19 instant = timing.Instant() 16:34:19 try: 16:34:19 > result: TResult | None = func() 16:34:19 ^^^^^^ 16:34:19 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:19 lambda: runtest_hook(item=item, **kwds), 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:19 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:19 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:19 yield 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:19 return (yield) 16:34:19 ^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:19 item.session._setupstate.setup(item) 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:19 col.setup() 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:19 super().setup() 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:19 self._request._fillfixtures() 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:19 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:19 fixturedef = self._get_active_fixturedef(argname) 16:34:19 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:19 fixturedef.execute(request=subrequest) 16:34:19 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:19 16:34:19 self = 16:34:19 request = > 16:34:19 16:34:19 def execute(self, request: SubRequest) -> FixtureValue: 16:34:19 """Return the value of this fixture, executing it if not cached.""" 16:34:19 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:19 # This needs to be done before checking if we have a cached value, since 16:34:19 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:19 # parametrization, they finalize themselves and fixtures depending on it 16:34:19 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:19 # See #4871 16:34:19 requested_fixtures_that_should_finalize_us = [] 16:34:19 for argname in self.argnames: 16:34:19 fixturedef = request._get_active_fixturedef(argname) 16:34:19 # Saves requested fixtures in a list so we later can add our finalizer 16:34:19 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:19 # down first. This is generally handled by SetupState, but still currently 16:34:19 # needed when this fixture is not parametrized but depends on a parametrized 16:34:19 # fixture. 16:34:19 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:19 16:34:19 # Check for (and return) cached value/exception. 16:34:19 if self.cached_result is not None: 16:34:19 request_cache_key = self.cache_key(request) 16:34:19 cache_key = self.cached_result[1] 16:34:19 try: 16:34:19 # Attempt to make a normal == check: this might fail for objects 16:34:19 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:19 cache_hit = bool(request_cache_key == cache_key) 16:34:19 except (ValueError, RuntimeError): 16:34:19 # If the comparison raises, use 'is' as fallback. 16:34:19 cache_hit = request_cache_key is cache_key 16:34:19 16:34:19 if cache_hit: 16:34:19 if self.cached_result[2] is not None: 16:34:19 exc, exc_tb = self.cached_result[2] 16:34:19 raise exc.with_traceback(exc_tb) 16:34:19 else: 16:34:19 return self.cached_result[0] 16:34:19 # We have a previous but differently parametrized fixture instance 16:34:19 # so we need to tear it down before creating a new one. 16:34:19 self.finish(request) 16:34:19 assert self.cached_result is None 16:34:19 16:34:19 # Add finalizer to requested fixtures we saved previously. 16:34:19 # We make sure to do this after checking for cached value to avoid 16:34:19 # adding our finalizer multiple times. (#12135) 16:34:19 finalizer = functools.partial(self.finish, request=request) 16:34:19 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:19 parent_fixture.addfinalizer(finalizer) 16:34:19 16:34:19 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:19 # which is executed last. 16:34:19 > assert not self._finalizers 16:34:19 ^^^^^^^^^^^^^^^^^^^^ 16:34:19 E AssertionError 16:34:19 16:34:19 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:19 =========================== short test summary info ============================ 16:34:19 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_01_meta_data_insertion 16:34:19 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_02_catalog_input_insertion 16:34:19 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_device_connection 16:34:19 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_04_xpdr_device_connected 16:34:19 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_05_xpdr_portmapping_info 16:34:19 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK5 16:34:19 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 16:34:19 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_08_mpdr_switching_pool 16:34:19 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_09_check_mccapprofile 16:34:19 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 16:34:19 10 errors in 101.93s (0:01:41) 16:34:19 tests200: exit 1 (102.20 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh oc200 pid=4990 16:34:19 Etests200: FAIL ✖ in 1 minute 50.29 seconds 16:34:19 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:34:19 EEEEEEEEEEEEEEEEEEEEEEEE [100%] 16:34:23 ==================================== ERRORS ==================================== 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 16:34:23 16:34:23 cls = 16:34:23 16:34:23 @classmethod 16:34:23 def setUpClass(cls): 16:34:23 > cls.processes = test_utils.start_tpce() 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 16:34:23 transportpce_tests/2.2.1/test01_portmapping.py:33: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 def start_tpce(): 16:34:23 if 'NO_ODL_STARTUP' in os.environ: 16:34:23 print('No OpenDaylight instance to start!') 16:34:23 return [] 16:34:23 print('starting OpenDaylight...') 16:34:23 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 16:34:23 process = start_lighty() 16:34:23 else: 16:34:23 process = start_karaf() 16:34:23 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 16:34:23 print('OpenDaylight started !') 16:34:23 else: 16:34:23 print('OpenDaylight failed to start !') 16:34:23 shutdown_process(process) 16:34:23 for pid in process_list: 16:34:23 shutdown_process(pid) 16:34:23 > sys.exit(1) 16:34:23 E SystemExit: 1 16:34:23 16:34:23 transportpce_tests/common/test_utils.py:233: SystemExit 16:34:23 ---------------------------- Captured stdout setup ----------------------------- 16:34:23 starting OpenDaylight... 16:34:23 starting KARAF (karaf221) TransportPCE build... 16:34:23 Pattern not found after 100 seconds! OpenDaylight failed to start ! 16:34:23 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca0c0f560> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca052bec0> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca1cc2a20> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms _ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca2c084a0> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG1_PP3_TXRX _ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca0586ca0> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_07_rdm_portmapping_SRG3_PP1_TXRX _ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca052bec0> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connection _ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca1cc2a20> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_device_connected __ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca0584cc0> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_info __ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca0c0f6a0> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK1 _ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca052bec0> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_XPDR2_NETWORK1 _ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca0584360> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_XPDR1_CLIENT1 _ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca0c0f6a0> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_XPDR1_CLIENT2 _ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca05879c0> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_15_spdr_device_connection _ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca0587880> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_16_spdr_device_connected __ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca0c0e340> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_17_spdr_portmapping_info __ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca0c0e020> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_18_spdr_switching_pool_1 __ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca0c0e340> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_19_spdr_switching_pool_2 __ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca0c0e020> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_20_spdr_switching_pool_3 __ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca0587b00> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_21_spdr_portmapping_mappings _ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca0c0e340> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_22_spdr_portmapping_XPDR1_CLIENT1 _ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca0584b80> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_23_spdr_portmapping_XPDR1_NETWORK1 _ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca0587c40> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_24_spdr_portmapping_XPDR2_CLIENT2 _ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca0c0e340> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_25_spdr_portmapping_XPDR2_NETWORK2 _ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca0587880> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_26_spdr_portmapping_XPDR3_CLIENT3 _ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca0584360> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_27_spdr_portmapping_XPDR3_NETWORK1 _ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca0c0e340> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_28_spdr_device_disconnection _ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca05871a0> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_29_xpdr_device_disconnected _ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca0587100> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_30_xpdr_device_disconnection _ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca0c0e340> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_31_xpdr_device_disconnected _ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca05865c0> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_32_xpdr_device_not_connected _ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca0586ca0> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_33_rdm_device_disconnection _ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca0c0e340> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_34_rdm_device_disconnected _ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca0587740> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 _ ERROR at setup of TestTransportPCEPortmapping.test_35_rdm_device_not_connected _ 16:34:23 16:34:23 cls = 16:34:23 func = . at 0x7faca0c0e340> 16:34:23 when = 'setup' 16:34:23 reraise = (, ) 16:34:23 16:34:23 @classmethod 16:34:23 def from_call( 16:34:23 cls, 16:34:23 func: Callable[[], TResult], 16:34:23 when: Literal["collect", "setup", "call", "teardown"], 16:34:23 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:34:23 ) -> CallInfo[TResult]: 16:34:23 """Call func, wrapping the result in a CallInfo. 16:34:23 16:34:23 :param func: 16:34:23 The function to call. Called without arguments. 16:34:23 :type func: Callable[[], _pytest.runner.TResult] 16:34:23 :param when: 16:34:23 The phase in which the function is called. 16:34:23 :param reraise: 16:34:23 Exception or exceptions that shall propagate if raised by the 16:34:23 function, instead of being wrapped in the CallInfo. 16:34:23 """ 16:34:23 excinfo = None 16:34:23 instant = timing.Instant() 16:34:23 try: 16:34:23 > result: TResult | None = func() 16:34:23 ^^^^^^ 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:34:23 lambda: runtest_hook(item=item, **kwds), 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:34:23 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:34:23 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:34:23 yield 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:34:23 return (yield) 16:34:23 ^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:34:23 item.session._setupstate.setup(item) 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:34:23 col.setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:34:23 super().setup() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:34:23 self._request._fillfixtures() 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:34:23 item.funcargs[argname] = self.getfixturevalue(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:34:23 fixturedef = self._get_active_fixturedef(argname) 16:34:23 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:34:23 fixturedef.execute(request=subrequest) 16:34:23 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:34:23 16:34:23 self = 16:34:23 request = > 16:34:23 16:34:23 def execute(self, request: SubRequest) -> FixtureValue: 16:34:23 """Return the value of this fixture, executing it if not cached.""" 16:34:23 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:34:23 # This needs to be done before checking if we have a cached value, since 16:34:23 # if a dependent fixture has their cache invalidated, e.g. due to 16:34:23 # parametrization, they finalize themselves and fixtures depending on it 16:34:23 # (which will likely include this fixture) setting `self.cached_result = None`. 16:34:23 # See #4871 16:34:23 requested_fixtures_that_should_finalize_us = [] 16:34:23 for argname in self.argnames: 16:34:23 fixturedef = request._get_active_fixturedef(argname) 16:34:23 # Saves requested fixtures in a list so we later can add our finalizer 16:34:23 # to them, ensuring that if a requested fixture gets torn down we get torn 16:34:23 # down first. This is generally handled by SetupState, but still currently 16:34:23 # needed when this fixture is not parametrized but depends on a parametrized 16:34:23 # fixture. 16:34:23 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:34:23 16:34:23 # Check for (and return) cached value/exception. 16:34:23 if self.cached_result is not None: 16:34:23 request_cache_key = self.cache_key(request) 16:34:23 cache_key = self.cached_result[1] 16:34:23 try: 16:34:23 # Attempt to make a normal == check: this might fail for objects 16:34:23 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:34:23 cache_hit = bool(request_cache_key == cache_key) 16:34:23 except (ValueError, RuntimeError): 16:34:23 # If the comparison raises, use 'is' as fallback. 16:34:23 cache_hit = request_cache_key is cache_key 16:34:23 16:34:23 if cache_hit: 16:34:23 if self.cached_result[2] is not None: 16:34:23 exc, exc_tb = self.cached_result[2] 16:34:23 raise exc.with_traceback(exc_tb) 16:34:23 else: 16:34:23 return self.cached_result[0] 16:34:23 # We have a previous but differently parametrized fixture instance 16:34:23 # so we need to tear it down before creating a new one. 16:34:23 self.finish(request) 16:34:23 assert self.cached_result is None 16:34:23 16:34:23 # Add finalizer to requested fixtures we saved previously. 16:34:23 # We make sure to do this after checking for cached value to avoid 16:34:23 # adding our finalizer multiple times. (#12135) 16:34:23 finalizer = functools.partial(self.finish, request=request) 16:34:23 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:34:23 parent_fixture.addfinalizer(finalizer) 16:34:23 16:34:23 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:34:23 # which is executed last. 16:34:23 > assert not self._finalizers 16:34:23 ^^^^^^^^^^^^^^^^^^^^ 16:34:23 E AssertionError 16:34:23 16:34:23 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:34:23 =========================== short test summary info ============================ 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG1_PP3_TXRX 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_rdm_portmapping_SRG3_PP1_TXRX 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connection 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_device_connected 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_info 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK1 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_XPDR2_NETWORK1 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_XPDR1_CLIENT1 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_XPDR1_CLIENT2 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_spdr_device_connection 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_spdr_device_connected 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_spdr_portmapping_info 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_spdr_switching_pool_1 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_spdr_switching_pool_2 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_spdr_switching_pool_3 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_spdr_portmapping_mappings 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_22_spdr_portmapping_XPDR1_CLIENT1 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_23_spdr_portmapping_XPDR1_NETWORK1 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_24_spdr_portmapping_XPDR2_CLIENT2 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_25_spdr_portmapping_XPDR2_NETWORK2 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_26_spdr_portmapping_XPDR3_CLIENT3 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_27_spdr_portmapping_XPDR3_NETWORK1 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_28_spdr_device_disconnection 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_29_xpdr_device_disconnected 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_30_xpdr_device_disconnection 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_31_xpdr_device_disconnected 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_32_xpdr_device_not_connected 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_33_rdm_device_disconnection 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_34_rdm_device_disconnected 16:34:23 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_35_rdm_device_not_connected 16:34:23 35 errors in 106.70s (0:01:46) 16:34:23 tests221: exit 1 (106.98 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh 2.2.1 pid=4979 16:34:24 tests221: FAIL ✖ in 1 minute 54.88 seconds 16:34:24 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:34:25 tests71: freeze> python -m pip freeze --all 16:34: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:34:26 tests71: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh 7.1 16:34:26 using environment variables from ./karaf71.env 16:34:26 pytest -q transportpce_tests/7.1/test01_portmapping.py 16:34:31 tests_hybrid: freeze> python -m pip freeze --all 16:34:31 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:34:31 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh hybrid 16:34:31 using environment variables from ./karaf221.env 16:34:31 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 16:36:06 EEEEEEEEEEEE [100%] 16:36:08 ==================================== ERRORS ==================================== 16:36:08 _ ERROR at setup of TestTransportPCEPortmapping.test_01_xpdr_device_connection _ 16:36:08 16:36:08 cls = 16:36:08 16:36:08 @classmethod 16:36:08 def setUpClass(cls): 16:36:08 > cls.processes = test_utils.start_tpce() 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 16:36:08 transportpce_tests/7.1/test01_portmapping.py:32: 16:36:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:08 16:36:08 def start_tpce(): 16:36:08 if 'NO_ODL_STARTUP' in os.environ: 16:36:08 print('No OpenDaylight instance to start!') 16:36:08 return [] 16:36:08 print('starting OpenDaylight...') 16:36:08 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 16:36:08 process = start_lighty() 16:36:08 else: 16:36:08 process = start_karaf() 16:36:08 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 16:36:08 print('OpenDaylight started !') 16:36:08 else: 16:36:08 print('OpenDaylight failed to start !') 16:36:08 shutdown_process(process) 16:36:08 for pid in process_list: 16:36:08 shutdown_process(pid) 16:36:08 > sys.exit(1) 16:36:08 E SystemExit: 1 16:36:08 16:36:08 transportpce_tests/common/test_utils.py:233: SystemExit 16:36:08 ---------------------------- Captured stdout setup ----------------------------- 16:36:08 starting OpenDaylight... 16:36:08 starting KARAF (karaf71) TransportPCE build... 16:36:08 Pattern not found after 100 seconds! OpenDaylight failed to start ! 16:36:08 _ ERROR at setup of TestTransportPCEPortmapping.test_02_xpdr_device_connected __ 16:36:08 16:36:08 cls = 16:36:08 func = . at 0x7f80f5512700> 16:36:08 when = 'setup' 16:36:08 reraise = (, ) 16:36:08 16:36:08 @classmethod 16:36:08 def from_call( 16:36:08 cls, 16:36:08 func: Callable[[], TResult], 16:36:08 when: Literal["collect", "setup", "call", "teardown"], 16:36:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:08 ) -> CallInfo[TResult]: 16:36:08 """Call func, wrapping the result in a CallInfo. 16:36:08 16:36:08 :param func: 16:36:08 The function to call. Called without arguments. 16:36:08 :type func: Callable[[], _pytest.runner.TResult] 16:36:08 :param when: 16:36:08 The phase in which the function is called. 16:36:08 :param reraise: 16:36:08 Exception or exceptions that shall propagate if raised by the 16:36:08 function, instead of being wrapped in the CallInfo. 16:36:08 """ 16:36:08 excinfo = None 16:36:08 instant = timing.Instant() 16:36:08 try: 16:36:08 > result: TResult | None = func() 16:36:08 ^^^^^^ 16:36:08 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:08 lambda: runtest_hook(item=item, **kwds), 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:08 yield 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:08 return (yield) 16:36:08 ^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:08 item.session._setupstate.setup(item) 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:08 col.setup() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:08 super().setup() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:08 self._request._fillfixtures() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:08 fixturedef = self._get_active_fixturedef(argname) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:08 fixturedef.execute(request=subrequest) 16:36:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:08 16:36:08 self = 16:36:08 request = > 16:36:08 16:36:08 def execute(self, request: SubRequest) -> FixtureValue: 16:36:08 """Return the value of this fixture, executing it if not cached.""" 16:36:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:08 # This needs to be done before checking if we have a cached value, since 16:36:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:08 # parametrization, they finalize themselves and fixtures depending on it 16:36:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:08 # See #4871 16:36:08 requested_fixtures_that_should_finalize_us = [] 16:36:08 for argname in self.argnames: 16:36:08 fixturedef = request._get_active_fixturedef(argname) 16:36:08 # Saves requested fixtures in a list so we later can add our finalizer 16:36:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:08 # down first. This is generally handled by SetupState, but still currently 16:36:08 # needed when this fixture is not parametrized but depends on a parametrized 16:36:08 # fixture. 16:36:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:08 16:36:08 # Check for (and return) cached value/exception. 16:36:08 if self.cached_result is not None: 16:36:08 request_cache_key = self.cache_key(request) 16:36:08 cache_key = self.cached_result[1] 16:36:08 try: 16:36:08 # Attempt to make a normal == check: this might fail for objects 16:36:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:08 cache_hit = bool(request_cache_key == cache_key) 16:36:08 except (ValueError, RuntimeError): 16:36:08 # If the comparison raises, use 'is' as fallback. 16:36:08 cache_hit = request_cache_key is cache_key 16:36:08 16:36:08 if cache_hit: 16:36:08 if self.cached_result[2] is not None: 16:36:08 exc, exc_tb = self.cached_result[2] 16:36:08 raise exc.with_traceback(exc_tb) 16:36:08 else: 16:36:08 return self.cached_result[0] 16:36:08 # We have a previous but differently parametrized fixture instance 16:36:08 # so we need to tear it down before creating a new one. 16:36:08 self.finish(request) 16:36:08 assert self.cached_result is None 16:36:08 16:36:08 # Add finalizer to requested fixtures we saved previously. 16:36:08 # We make sure to do this after checking for cached value to avoid 16:36:08 # adding our finalizer multiple times. (#12135) 16:36:08 finalizer = functools.partial(self.finish, request=request) 16:36:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:08 parent_fixture.addfinalizer(finalizer) 16:36:08 16:36:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:08 # which is executed last. 16:36:08 > assert not self._finalizers 16:36:08 ^^^^^^^^^^^^^^^^^^^^ 16:36:08 E AssertionError 16:36:08 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:08 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_portmapping_info __ 16:36:08 16:36:08 cls = 16:36:08 func = . at 0x7f80f5537740> 16:36:08 when = 'setup' 16:36:08 reraise = (, ) 16:36:08 16:36:08 @classmethod 16:36:08 def from_call( 16:36:08 cls, 16:36:08 func: Callable[[], TResult], 16:36:08 when: Literal["collect", "setup", "call", "teardown"], 16:36:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:08 ) -> CallInfo[TResult]: 16:36:08 """Call func, wrapping the result in a CallInfo. 16:36:08 16:36:08 :param func: 16:36:08 The function to call. Called without arguments. 16:36:08 :type func: Callable[[], _pytest.runner.TResult] 16:36:08 :param when: 16:36:08 The phase in which the function is called. 16:36:08 :param reraise: 16:36:08 Exception or exceptions that shall propagate if raised by the 16:36:08 function, instead of being wrapped in the CallInfo. 16:36:08 """ 16:36:08 excinfo = None 16:36:08 instant = timing.Instant() 16:36:08 try: 16:36:08 > result: TResult | None = func() 16:36:08 ^^^^^^ 16:36:08 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:08 lambda: runtest_hook(item=item, **kwds), 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:08 yield 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:08 return (yield) 16:36:08 ^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:08 item.session._setupstate.setup(item) 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:08 col.setup() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:08 super().setup() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:08 self._request._fillfixtures() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:08 fixturedef = self._get_active_fixturedef(argname) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:08 fixturedef.execute(request=subrequest) 16:36:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:08 16:36:08 self = 16:36:08 request = > 16:36:08 16:36:08 def execute(self, request: SubRequest) -> FixtureValue: 16:36:08 """Return the value of this fixture, executing it if not cached.""" 16:36:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:08 # This needs to be done before checking if we have a cached value, since 16:36:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:08 # parametrization, they finalize themselves and fixtures depending on it 16:36:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:08 # See #4871 16:36:08 requested_fixtures_that_should_finalize_us = [] 16:36:08 for argname in self.argnames: 16:36:08 fixturedef = request._get_active_fixturedef(argname) 16:36:08 # Saves requested fixtures in a list so we later can add our finalizer 16:36:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:08 # down first. This is generally handled by SetupState, but still currently 16:36:08 # needed when this fixture is not parametrized but depends on a parametrized 16:36:08 # fixture. 16:36:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:08 16:36:08 # Check for (and return) cached value/exception. 16:36:08 if self.cached_result is not None: 16:36:08 request_cache_key = self.cache_key(request) 16:36:08 cache_key = self.cached_result[1] 16:36:08 try: 16:36:08 # Attempt to make a normal == check: this might fail for objects 16:36:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:08 cache_hit = bool(request_cache_key == cache_key) 16:36:08 except (ValueError, RuntimeError): 16:36:08 # If the comparison raises, use 'is' as fallback. 16:36:08 cache_hit = request_cache_key is cache_key 16:36:08 16:36:08 if cache_hit: 16:36:08 if self.cached_result[2] is not None: 16:36:08 exc, exc_tb = self.cached_result[2] 16:36:08 raise exc.with_traceback(exc_tb) 16:36:08 else: 16:36:08 return self.cached_result[0] 16:36:08 # We have a previous but differently parametrized fixture instance 16:36:08 # so we need to tear it down before creating a new one. 16:36:08 self.finish(request) 16:36:08 assert self.cached_result is None 16:36:08 16:36:08 # Add finalizer to requested fixtures we saved previously. 16:36:08 # We make sure to do this after checking for cached value to avoid 16:36:08 # adding our finalizer multiple times. (#12135) 16:36:08 finalizer = functools.partial(self.finish, request=request) 16:36:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:08 parent_fixture.addfinalizer(finalizer) 16:36:08 16:36:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:08 # which is executed last. 16:36:08 > assert not self._finalizers 16:36:08 ^^^^^^^^^^^^^^^^^^^^ 16:36:08 E AssertionError 16:36:08 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:08 _ ERROR at setup of TestTransportPCEPortmapping.test_04_tpdr_portmapping_NETWORK1 _ 16:36:08 16:36:08 cls = 16:36:08 func = . at 0x7f80f7c2cea0> 16:36:08 when = 'setup' 16:36:08 reraise = (, ) 16:36:08 16:36:08 @classmethod 16:36:08 def from_call( 16:36:08 cls, 16:36:08 func: Callable[[], TResult], 16:36:08 when: Literal["collect", "setup", "call", "teardown"], 16:36:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:08 ) -> CallInfo[TResult]: 16:36:08 """Call func, wrapping the result in a CallInfo. 16:36:08 16:36:08 :param func: 16:36:08 The function to call. Called without arguments. 16:36:08 :type func: Callable[[], _pytest.runner.TResult] 16:36:08 :param when: 16:36:08 The phase in which the function is called. 16:36:08 :param reraise: 16:36:08 Exception or exceptions that shall propagate if raised by the 16:36:08 function, instead of being wrapped in the CallInfo. 16:36:08 """ 16:36:08 excinfo = None 16:36:08 instant = timing.Instant() 16:36:08 try: 16:36:08 > result: TResult | None = func() 16:36:08 ^^^^^^ 16:36:08 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:08 lambda: runtest_hook(item=item, **kwds), 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:08 yield 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:08 return (yield) 16:36:08 ^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:08 item.session._setupstate.setup(item) 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:08 col.setup() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:08 super().setup() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:08 self._request._fillfixtures() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:08 fixturedef = self._get_active_fixturedef(argname) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:08 fixturedef.execute(request=subrequest) 16:36:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:08 16:36:08 self = 16:36:08 request = > 16:36:08 16:36:08 def execute(self, request: SubRequest) -> FixtureValue: 16:36:08 """Return the value of this fixture, executing it if not cached.""" 16:36:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:08 # This needs to be done before checking if we have a cached value, since 16:36:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:08 # parametrization, they finalize themselves and fixtures depending on it 16:36:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:08 # See #4871 16:36:08 requested_fixtures_that_should_finalize_us = [] 16:36:08 for argname in self.argnames: 16:36:08 fixturedef = request._get_active_fixturedef(argname) 16:36:08 # Saves requested fixtures in a list so we later can add our finalizer 16:36:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:08 # down first. This is generally handled by SetupState, but still currently 16:36:08 # needed when this fixture is not parametrized but depends on a parametrized 16:36:08 # fixture. 16:36:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:08 16:36:08 # Check for (and return) cached value/exception. 16:36:08 if self.cached_result is not None: 16:36:08 request_cache_key = self.cache_key(request) 16:36:08 cache_key = self.cached_result[1] 16:36:08 try: 16:36:08 # Attempt to make a normal == check: this might fail for objects 16:36:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:08 cache_hit = bool(request_cache_key == cache_key) 16:36:08 except (ValueError, RuntimeError): 16:36:08 # If the comparison raises, use 'is' as fallback. 16:36:08 cache_hit = request_cache_key is cache_key 16:36:08 16:36:08 if cache_hit: 16:36:08 if self.cached_result[2] is not None: 16:36:08 exc, exc_tb = self.cached_result[2] 16:36:08 raise exc.with_traceback(exc_tb) 16:36:08 else: 16:36:08 return self.cached_result[0] 16:36:08 # We have a previous but differently parametrized fixture instance 16:36:08 # so we need to tear it down before creating a new one. 16:36:08 self.finish(request) 16:36:08 assert self.cached_result is None 16:36:08 16:36:08 # Add finalizer to requested fixtures we saved previously. 16:36:08 # We make sure to do this after checking for cached value to avoid 16:36:08 # adding our finalizer multiple times. (#12135) 16:36:08 finalizer = functools.partial(self.finish, request=request) 16:36:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:08 parent_fixture.addfinalizer(finalizer) 16:36:08 16:36:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:08 # which is executed last. 16:36:08 > assert not self._finalizers 16:36:08 ^^^^^^^^^^^^^^^^^^^^ 16:36:08 E AssertionError 16:36:08 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:08 _ ERROR at setup of TestTransportPCEPortmapping.test_05_tpdr_portmapping_CLIENT1 _ 16:36:08 16:36:08 cls = 16:36:08 func = . at 0x7f80f5512700> 16:36:08 when = 'setup' 16:36:08 reraise = (, ) 16:36:08 16:36:08 @classmethod 16:36:08 def from_call( 16:36:08 cls, 16:36:08 func: Callable[[], TResult], 16:36:08 when: Literal["collect", "setup", "call", "teardown"], 16:36:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:08 ) -> CallInfo[TResult]: 16:36:08 """Call func, wrapping the result in a CallInfo. 16:36:08 16:36:08 :param func: 16:36:08 The function to call. Called without arguments. 16:36:08 :type func: Callable[[], _pytest.runner.TResult] 16:36:08 :param when: 16:36:08 The phase in which the function is called. 16:36:08 :param reraise: 16:36:08 Exception or exceptions that shall propagate if raised by the 16:36:08 function, instead of being wrapped in the CallInfo. 16:36:08 """ 16:36:08 excinfo = None 16:36:08 instant = timing.Instant() 16:36:08 try: 16:36:08 > result: TResult | None = func() 16:36:08 ^^^^^^ 16:36:08 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:08 lambda: runtest_hook(item=item, **kwds), 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:08 yield 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:08 return (yield) 16:36:08 ^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:08 item.session._setupstate.setup(item) 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:08 col.setup() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:08 super().setup() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:08 self._request._fillfixtures() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:08 fixturedef = self._get_active_fixturedef(argname) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:08 fixturedef.execute(request=subrequest) 16:36:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:08 16:36:08 self = 16:36:08 request = > 16:36:08 16:36:08 def execute(self, request: SubRequest) -> FixtureValue: 16:36:08 """Return the value of this fixture, executing it if not cached.""" 16:36:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:08 # This needs to be done before checking if we have a cached value, since 16:36:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:08 # parametrization, they finalize themselves and fixtures depending on it 16:36:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:08 # See #4871 16:36:08 requested_fixtures_that_should_finalize_us = [] 16:36:08 for argname in self.argnames: 16:36:08 fixturedef = request._get_active_fixturedef(argname) 16:36:08 # Saves requested fixtures in a list so we later can add our finalizer 16:36:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:08 # down first. This is generally handled by SetupState, but still currently 16:36:08 # needed when this fixture is not parametrized but depends on a parametrized 16:36:08 # fixture. 16:36:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:08 16:36:08 # Check for (and return) cached value/exception. 16:36:08 if self.cached_result is not None: 16:36:08 request_cache_key = self.cache_key(request) 16:36:08 cache_key = self.cached_result[1] 16:36:08 try: 16:36:08 # Attempt to make a normal == check: this might fail for objects 16:36:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:08 cache_hit = bool(request_cache_key == cache_key) 16:36:08 except (ValueError, RuntimeError): 16:36:08 # If the comparison raises, use 'is' as fallback. 16:36:08 cache_hit = request_cache_key is cache_key 16:36:08 16:36:08 if cache_hit: 16:36:08 if self.cached_result[2] is not None: 16:36:08 exc, exc_tb = self.cached_result[2] 16:36:08 raise exc.with_traceback(exc_tb) 16:36:08 else: 16:36:08 return self.cached_result[0] 16:36:08 # We have a previous but differently parametrized fixture instance 16:36:08 # so we need to tear it down before creating a new one. 16:36:08 self.finish(request) 16:36:08 assert self.cached_result is None 16:36:08 16:36:08 # Add finalizer to requested fixtures we saved previously. 16:36:08 # We make sure to do this after checking for cached value to avoid 16:36:08 # adding our finalizer multiple times. (#12135) 16:36:08 finalizer = functools.partial(self.finish, request=request) 16:36:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:08 parent_fixture.addfinalizer(finalizer) 16:36:08 16:36:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:08 # which is executed last. 16:36:08 > assert not self._finalizers 16:36:08 ^^^^^^^^^^^^^^^^^^^^ 16:36:08 E AssertionError 16:36:08 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:08 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK1 _ 16:36:08 16:36:08 cls = 16:36:08 func = . at 0x7f80f6cdfe20> 16:36:08 when = 'setup' 16:36:08 reraise = (, ) 16:36:08 16:36:08 @classmethod 16:36:08 def from_call( 16:36:08 cls, 16:36:08 func: Callable[[], TResult], 16:36:08 when: Literal["collect", "setup", "call", "teardown"], 16:36:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:08 ) -> CallInfo[TResult]: 16:36:08 """Call func, wrapping the result in a CallInfo. 16:36:08 16:36:08 :param func: 16:36:08 The function to call. Called without arguments. 16:36:08 :type func: Callable[[], _pytest.runner.TResult] 16:36:08 :param when: 16:36:08 The phase in which the function is called. 16:36:08 :param reraise: 16:36:08 Exception or exceptions that shall propagate if raised by the 16:36:08 function, instead of being wrapped in the CallInfo. 16:36:08 """ 16:36:08 excinfo = None 16:36:08 instant = timing.Instant() 16:36:08 try: 16:36:08 > result: TResult | None = func() 16:36:08 ^^^^^^ 16:36:08 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:08 lambda: runtest_hook(item=item, **kwds), 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:08 yield 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:08 return (yield) 16:36:08 ^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:08 item.session._setupstate.setup(item) 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:08 col.setup() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:08 super().setup() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:08 self._request._fillfixtures() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:08 fixturedef = self._get_active_fixturedef(argname) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:08 fixturedef.execute(request=subrequest) 16:36:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:08 16:36:08 self = 16:36:08 request = > 16:36:08 16:36:08 def execute(self, request: SubRequest) -> FixtureValue: 16:36:08 """Return the value of this fixture, executing it if not cached.""" 16:36:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:08 # This needs to be done before checking if we have a cached value, since 16:36:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:08 # parametrization, they finalize themselves and fixtures depending on it 16:36:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:08 # See #4871 16:36:08 requested_fixtures_that_should_finalize_us = [] 16:36:08 for argname in self.argnames: 16:36:08 fixturedef = request._get_active_fixturedef(argname) 16:36:08 # Saves requested fixtures in a list so we later can add our finalizer 16:36:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:08 # down first. This is generally handled by SetupState, but still currently 16:36:08 # needed when this fixture is not parametrized but depends on a parametrized 16:36:08 # fixture. 16:36:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:08 16:36:08 # Check for (and return) cached value/exception. 16:36:08 if self.cached_result is not None: 16:36:08 request_cache_key = self.cache_key(request) 16:36:08 cache_key = self.cached_result[1] 16:36:08 try: 16:36:08 # Attempt to make a normal == check: this might fail for objects 16:36:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:08 cache_hit = bool(request_cache_key == cache_key) 16:36:08 except (ValueError, RuntimeError): 16:36:08 # If the comparison raises, use 'is' as fallback. 16:36:08 cache_hit = request_cache_key is cache_key 16:36:08 16:36:08 if cache_hit: 16:36:08 if self.cached_result[2] is not None: 16:36:08 exc, exc_tb = self.cached_result[2] 16:36:08 raise exc.with_traceback(exc_tb) 16:36:08 else: 16:36:08 return self.cached_result[0] 16:36:08 # We have a previous but differently parametrized fixture instance 16:36:08 # so we need to tear it down before creating a new one. 16:36:08 self.finish(request) 16:36:08 assert self.cached_result is None 16:36:08 16:36:08 # Add finalizer to requested fixtures we saved previously. 16:36:08 # We make sure to do this after checking for cached value to avoid 16:36:08 # adding our finalizer multiple times. (#12135) 16:36:08 finalizer = functools.partial(self.finish, request=request) 16:36:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:08 parent_fixture.addfinalizer(finalizer) 16:36:08 16:36:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:08 # which is executed last. 16:36:08 > assert not self._finalizers 16:36:08 ^^^^^^^^^^^^^^^^^^^^ 16:36:08 E AssertionError 16:36:08 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:08 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 16:36:08 16:36:08 cls = 16:36:08 func = . at 0x7f80f5512700> 16:36:08 when = 'setup' 16:36:08 reraise = (, ) 16:36:08 16:36:08 @classmethod 16:36:08 def from_call( 16:36:08 cls, 16:36:08 func: Callable[[], TResult], 16:36:08 when: Literal["collect", "setup", "call", "teardown"], 16:36:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:08 ) -> CallInfo[TResult]: 16:36:08 """Call func, wrapping the result in a CallInfo. 16:36:08 16:36:08 :param func: 16:36:08 The function to call. Called without arguments. 16:36:08 :type func: Callable[[], _pytest.runner.TResult] 16:36:08 :param when: 16:36:08 The phase in which the function is called. 16:36:08 :param reraise: 16:36:08 Exception or exceptions that shall propagate if raised by the 16:36:08 function, instead of being wrapped in the CallInfo. 16:36:08 """ 16:36:08 excinfo = None 16:36:08 instant = timing.Instant() 16:36:08 try: 16:36:08 > result: TResult | None = func() 16:36:08 ^^^^^^ 16:36:08 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:08 lambda: runtest_hook(item=item, **kwds), 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:08 yield 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:08 return (yield) 16:36:08 ^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:08 item.session._setupstate.setup(item) 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:08 col.setup() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:08 super().setup() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:08 self._request._fillfixtures() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:08 fixturedef = self._get_active_fixturedef(argname) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:08 fixturedef.execute(request=subrequest) 16:36:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:08 16:36:08 self = 16:36:08 request = > 16:36:08 16:36:08 def execute(self, request: SubRequest) -> FixtureValue: 16:36:08 """Return the value of this fixture, executing it if not cached.""" 16:36:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:08 # This needs to be done before checking if we have a cached value, since 16:36:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:08 # parametrization, they finalize themselves and fixtures depending on it 16:36:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:08 # See #4871 16:36:08 requested_fixtures_that_should_finalize_us = [] 16:36:08 for argname in self.argnames: 16:36:08 fixturedef = request._get_active_fixturedef(argname) 16:36:08 # Saves requested fixtures in a list so we later can add our finalizer 16:36:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:08 # down first. This is generally handled by SetupState, but still currently 16:36:08 # needed when this fixture is not parametrized but depends on a parametrized 16:36:08 # fixture. 16:36:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:08 16:36:08 # Check for (and return) cached value/exception. 16:36:08 if self.cached_result is not None: 16:36:08 request_cache_key = self.cache_key(request) 16:36:08 cache_key = self.cached_result[1] 16:36:08 try: 16:36:08 # Attempt to make a normal == check: this might fail for objects 16:36:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:08 cache_hit = bool(request_cache_key == cache_key) 16:36:08 except (ValueError, RuntimeError): 16:36:08 # If the comparison raises, use 'is' as fallback. 16:36:08 cache_hit = request_cache_key is cache_key 16:36:08 16:36:08 if cache_hit: 16:36:08 if self.cached_result[2] is not None: 16:36:08 exc, exc_tb = self.cached_result[2] 16:36:08 raise exc.with_traceback(exc_tb) 16:36:08 else: 16:36:08 return self.cached_result[0] 16:36:08 # We have a previous but differently parametrized fixture instance 16:36:08 # so we need to tear it down before creating a new one. 16:36:08 self.finish(request) 16:36:08 assert self.cached_result is None 16:36:08 16:36:08 # Add finalizer to requested fixtures we saved previously. 16:36:08 # We make sure to do this after checking for cached value to avoid 16:36:08 # adding our finalizer multiple times. (#12135) 16:36:08 finalizer = functools.partial(self.finish, request=request) 16:36:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:08 parent_fixture.addfinalizer(finalizer) 16:36:08 16:36:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:08 # which is executed last. 16:36:08 > assert not self._finalizers 16:36:08 ^^^^^^^^^^^^^^^^^^^^ 16:36:08 E AssertionError 16:36:08 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:08 ___ ERROR at setup of TestTransportPCEPortmapping.test_08_check_mccapprofile ___ 16:36:08 16:36:08 cls = 16:36:08 func = . at 0x7f80f5537600> 16:36:08 when = 'setup' 16:36:08 reraise = (, ) 16:36:08 16:36:08 @classmethod 16:36:08 def from_call( 16:36:08 cls, 16:36:08 func: Callable[[], TResult], 16:36:08 when: Literal["collect", "setup", "call", "teardown"], 16:36:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:08 ) -> CallInfo[TResult]: 16:36:08 """Call func, wrapping the result in a CallInfo. 16:36:08 16:36:08 :param func: 16:36:08 The function to call. Called without arguments. 16:36:08 :type func: Callable[[], _pytest.runner.TResult] 16:36:08 :param when: 16:36:08 The phase in which the function is called. 16:36:08 :param reraise: 16:36:08 Exception or exceptions that shall propagate if raised by the 16:36:08 function, instead of being wrapped in the CallInfo. 16:36:08 """ 16:36:08 excinfo = None 16:36:08 instant = timing.Instant() 16:36:08 try: 16:36:08 > result: TResult | None = func() 16:36:08 ^^^^^^ 16:36:08 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:08 lambda: runtest_hook(item=item, **kwds), 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:08 yield 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:08 return (yield) 16:36:08 ^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:08 item.session._setupstate.setup(item) 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:08 col.setup() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:08 super().setup() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:08 self._request._fillfixtures() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:08 fixturedef = self._get_active_fixturedef(argname) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:08 fixturedef.execute(request=subrequest) 16:36:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:08 16:36:08 self = 16:36:08 request = > 16:36:08 16:36:08 def execute(self, request: SubRequest) -> FixtureValue: 16:36:08 """Return the value of this fixture, executing it if not cached.""" 16:36:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:08 # This needs to be done before checking if we have a cached value, since 16:36:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:08 # parametrization, they finalize themselves and fixtures depending on it 16:36:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:08 # See #4871 16:36:08 requested_fixtures_that_should_finalize_us = [] 16:36:08 for argname in self.argnames: 16:36:08 fixturedef = request._get_active_fixturedef(argname) 16:36:08 # Saves requested fixtures in a list so we later can add our finalizer 16:36:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:08 # down first. This is generally handled by SetupState, but still currently 16:36:08 # needed when this fixture is not parametrized but depends on a parametrized 16:36:08 # fixture. 16:36:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:08 16:36:08 # Check for (and return) cached value/exception. 16:36:08 if self.cached_result is not None: 16:36:08 request_cache_key = self.cache_key(request) 16:36:08 cache_key = self.cached_result[1] 16:36:08 try: 16:36:08 # Attempt to make a normal == check: this might fail for objects 16:36:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:08 cache_hit = bool(request_cache_key == cache_key) 16:36:08 except (ValueError, RuntimeError): 16:36:08 # If the comparison raises, use 'is' as fallback. 16:36:08 cache_hit = request_cache_key is cache_key 16:36:08 16:36:08 if cache_hit: 16:36:08 if self.cached_result[2] is not None: 16:36:08 exc, exc_tb = self.cached_result[2] 16:36:08 raise exc.with_traceback(exc_tb) 16:36:08 else: 16:36:08 return self.cached_result[0] 16:36:08 # We have a previous but differently parametrized fixture instance 16:36:08 # so we need to tear it down before creating a new one. 16:36:08 self.finish(request) 16:36:08 assert self.cached_result is None 16:36:08 16:36:08 # Add finalizer to requested fixtures we saved previously. 16:36:08 # We make sure to do this after checking for cached value to avoid 16:36:08 # adding our finalizer multiple times. (#12135) 16:36:08 finalizer = functools.partial(self.finish, request=request) 16:36:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:08 parent_fixture.addfinalizer(finalizer) 16:36:08 16:36:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:08 # which is executed last. 16:36:08 > assert not self._finalizers 16:36:08 ^^^^^^^^^^^^^^^^^^^^ 16:36:08 E AssertionError 16:36:08 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:08 __ ERROR at setup of TestTransportPCEPortmapping.test_09_mpdr_switching_pool ___ 16:36:08 16:36:08 cls = 16:36:08 func = . at 0x7f80f5535d00> 16:36:08 when = 'setup' 16:36:08 reraise = (, ) 16:36:08 16:36:08 @classmethod 16:36:08 def from_call( 16:36:08 cls, 16:36:08 func: Callable[[], TResult], 16:36:08 when: Literal["collect", "setup", "call", "teardown"], 16:36:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:08 ) -> CallInfo[TResult]: 16:36:08 """Call func, wrapping the result in a CallInfo. 16:36:08 16:36:08 :param func: 16:36:08 The function to call. Called without arguments. 16:36:08 :type func: Callable[[], _pytest.runner.TResult] 16:36:08 :param when: 16:36:08 The phase in which the function is called. 16:36:08 :param reraise: 16:36:08 Exception or exceptions that shall propagate if raised by the 16:36:08 function, instead of being wrapped in the CallInfo. 16:36:08 """ 16:36:08 excinfo = None 16:36:08 instant = timing.Instant() 16:36:08 try: 16:36:08 > result: TResult | None = func() 16:36:08 ^^^^^^ 16:36:08 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:08 lambda: runtest_hook(item=item, **kwds), 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:08 yield 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:08 return (yield) 16:36:08 ^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:08 item.session._setupstate.setup(item) 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:08 col.setup() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:08 super().setup() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:08 self._request._fillfixtures() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:08 fixturedef = self._get_active_fixturedef(argname) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:08 fixturedef.execute(request=subrequest) 16:36:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:08 16:36:08 self = 16:36:08 request = > 16:36:08 16:36:08 def execute(self, request: SubRequest) -> FixtureValue: 16:36:08 """Return the value of this fixture, executing it if not cached.""" 16:36:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:08 # This needs to be done before checking if we have a cached value, since 16:36:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:08 # parametrization, they finalize themselves and fixtures depending on it 16:36:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:08 # See #4871 16:36:08 requested_fixtures_that_should_finalize_us = [] 16:36:08 for argname in self.argnames: 16:36:08 fixturedef = request._get_active_fixturedef(argname) 16:36:08 # Saves requested fixtures in a list so we later can add our finalizer 16:36:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:08 # down first. This is generally handled by SetupState, but still currently 16:36:08 # needed when this fixture is not parametrized but depends on a parametrized 16:36:08 # fixture. 16:36:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:08 16:36:08 # Check for (and return) cached value/exception. 16:36:08 if self.cached_result is not None: 16:36:08 request_cache_key = self.cache_key(request) 16:36:08 cache_key = self.cached_result[1] 16:36:08 try: 16:36:08 # Attempt to make a normal == check: this might fail for objects 16:36:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:08 cache_hit = bool(request_cache_key == cache_key) 16:36:08 except (ValueError, RuntimeError): 16:36:08 # If the comparison raises, use 'is' as fallback. 16:36:08 cache_hit = request_cache_key is cache_key 16:36:08 16:36:08 if cache_hit: 16:36:08 if self.cached_result[2] is not None: 16:36:08 exc, exc_tb = self.cached_result[2] 16:36:08 raise exc.with_traceback(exc_tb) 16:36:08 else: 16:36:08 return self.cached_result[0] 16:36:08 # We have a previous but differently parametrized fixture instance 16:36:08 # so we need to tear it down before creating a new one. 16:36:08 self.finish(request) 16:36:08 assert self.cached_result is None 16:36:08 16:36:08 # Add finalizer to requested fixtures we saved previously. 16:36:08 # We make sure to do this after checking for cached value to avoid 16:36:08 # adding our finalizer multiple times. (#12135) 16:36:08 finalizer = functools.partial(self.finish, request=request) 16:36:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:08 parent_fixture.addfinalizer(finalizer) 16:36:08 16:36:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:08 # which is executed last. 16:36:08 > assert not self._finalizers 16:36:08 ^^^^^^^^^^^^^^^^^^^^ 16:36:08 E AssertionError 16:36:08 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:08 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 16:36:08 16:36:08 cls = 16:36:08 func = . at 0x7f80f5537920> 16:36:08 when = 'setup' 16:36:08 reraise = (, ) 16:36:08 16:36:08 @classmethod 16:36:08 def from_call( 16:36:08 cls, 16:36:08 func: Callable[[], TResult], 16:36:08 when: Literal["collect", "setup", "call", "teardown"], 16:36:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:08 ) -> CallInfo[TResult]: 16:36:08 """Call func, wrapping the result in a CallInfo. 16:36:08 16:36:08 :param func: 16:36:08 The function to call. Called without arguments. 16:36:08 :type func: Callable[[], _pytest.runner.TResult] 16:36:08 :param when: 16:36:08 The phase in which the function is called. 16:36:08 :param reraise: 16:36:08 Exception or exceptions that shall propagate if raised by the 16:36:08 function, instead of being wrapped in the CallInfo. 16:36:08 """ 16:36:08 excinfo = None 16:36:08 instant = timing.Instant() 16:36:08 try: 16:36:08 > result: TResult | None = func() 16:36:08 ^^^^^^ 16:36:08 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:08 lambda: runtest_hook(item=item, **kwds), 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:08 yield 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:08 return (yield) 16:36:08 ^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:08 item.session._setupstate.setup(item) 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:08 col.setup() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:08 super().setup() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:08 self._request._fillfixtures() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:08 fixturedef = self._get_active_fixturedef(argname) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:08 fixturedef.execute(request=subrequest) 16:36:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:08 16:36:08 self = 16:36:08 request = > 16:36:08 16:36:08 def execute(self, request: SubRequest) -> FixtureValue: 16:36:08 """Return the value of this fixture, executing it if not cached.""" 16:36:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:08 # This needs to be done before checking if we have a cached value, since 16:36:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:08 # parametrization, they finalize themselves and fixtures depending on it 16:36:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:08 # See #4871 16:36:08 requested_fixtures_that_should_finalize_us = [] 16:36:08 for argname in self.argnames: 16:36:08 fixturedef = request._get_active_fixturedef(argname) 16:36:08 # Saves requested fixtures in a list so we later can add our finalizer 16:36:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:08 # down first. This is generally handled by SetupState, but still currently 16:36:08 # needed when this fixture is not parametrized but depends on a parametrized 16:36:08 # fixture. 16:36:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:08 16:36:08 # Check for (and return) cached value/exception. 16:36:08 if self.cached_result is not None: 16:36:08 request_cache_key = self.cache_key(request) 16:36:08 cache_key = self.cached_result[1] 16:36:08 try: 16:36:08 # Attempt to make a normal == check: this might fail for objects 16:36:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:08 cache_hit = bool(request_cache_key == cache_key) 16:36:08 except (ValueError, RuntimeError): 16:36:08 # If the comparison raises, use 'is' as fallback. 16:36:08 cache_hit = request_cache_key is cache_key 16:36:08 16:36:08 if cache_hit: 16:36:08 if self.cached_result[2] is not None: 16:36:08 exc, exc_tb = self.cached_result[2] 16:36:08 raise exc.with_traceback(exc_tb) 16:36:08 else: 16:36:08 return self.cached_result[0] 16:36:08 # We have a previous but differently parametrized fixture instance 16:36:08 # so we need to tear it down before creating a new one. 16:36:08 self.finish(request) 16:36:08 assert self.cached_result is None 16:36:08 16:36:08 # Add finalizer to requested fixtures we saved previously. 16:36:08 # We make sure to do this after checking for cached value to avoid 16:36:08 # adding our finalizer multiple times. (#12135) 16:36:08 finalizer = functools.partial(self.finish, request=request) 16:36:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:08 parent_fixture.addfinalizer(finalizer) 16:36:08 16:36:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:08 # which is executed last. 16:36:08 > assert not self._finalizers 16:36:08 ^^^^^^^^^^^^^^^^^^^^ 16:36:08 E AssertionError 16:36:08 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:08 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_device_disconnected _ 16:36:08 16:36:08 cls = 16:36:08 func = . at 0x7f80f55377e0> 16:36:08 when = 'setup' 16:36:08 reraise = (, ) 16:36:08 16:36:08 @classmethod 16:36:08 def from_call( 16:36:08 cls, 16:36:08 func: Callable[[], TResult], 16:36:08 when: Literal["collect", "setup", "call", "teardown"], 16:36:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:08 ) -> CallInfo[TResult]: 16:36:08 """Call func, wrapping the result in a CallInfo. 16:36:08 16:36:08 :param func: 16:36:08 The function to call. Called without arguments. 16:36:08 :type func: Callable[[], _pytest.runner.TResult] 16:36:08 :param when: 16:36:08 The phase in which the function is called. 16:36:08 :param reraise: 16:36:08 Exception or exceptions that shall propagate if raised by the 16:36:08 function, instead of being wrapped in the CallInfo. 16:36:08 """ 16:36:08 excinfo = None 16:36:08 instant = timing.Instant() 16:36:08 try: 16:36:08 > result: TResult | None = func() 16:36:08 ^^^^^^ 16:36:08 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:08 lambda: runtest_hook(item=item, **kwds), 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:08 yield 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:08 return (yield) 16:36:08 ^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:08 item.session._setupstate.setup(item) 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:08 col.setup() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:08 super().setup() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:08 self._request._fillfixtures() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:08 fixturedef = self._get_active_fixturedef(argname) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:08 fixturedef.execute(request=subrequest) 16:36:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:08 16:36:08 self = 16:36:08 request = > 16:36:08 16:36:08 def execute(self, request: SubRequest) -> FixtureValue: 16:36:08 """Return the value of this fixture, executing it if not cached.""" 16:36:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:08 # This needs to be done before checking if we have a cached value, since 16:36:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:08 # parametrization, they finalize themselves and fixtures depending on it 16:36:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:08 # See #4871 16:36:08 requested_fixtures_that_should_finalize_us = [] 16:36:08 for argname in self.argnames: 16:36:08 fixturedef = request._get_active_fixturedef(argname) 16:36:08 # Saves requested fixtures in a list so we later can add our finalizer 16:36:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:08 # down first. This is generally handled by SetupState, but still currently 16:36:08 # needed when this fixture is not parametrized but depends on a parametrized 16:36:08 # fixture. 16:36:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:08 16:36:08 # Check for (and return) cached value/exception. 16:36:08 if self.cached_result is not None: 16:36:08 request_cache_key = self.cache_key(request) 16:36:08 cache_key = self.cached_result[1] 16:36:08 try: 16:36:08 # Attempt to make a normal == check: this might fail for objects 16:36:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:08 cache_hit = bool(request_cache_key == cache_key) 16:36:08 except (ValueError, RuntimeError): 16:36:08 # If the comparison raises, use 'is' as fallback. 16:36:08 cache_hit = request_cache_key is cache_key 16:36:08 16:36:08 if cache_hit: 16:36:08 if self.cached_result[2] is not None: 16:36:08 exc, exc_tb = self.cached_result[2] 16:36:08 raise exc.with_traceback(exc_tb) 16:36:08 else: 16:36:08 return self.cached_result[0] 16:36:08 # We have a previous but differently parametrized fixture instance 16:36:08 # so we need to tear it down before creating a new one. 16:36:08 self.finish(request) 16:36:08 assert self.cached_result is None 16:36:08 16:36:08 # Add finalizer to requested fixtures we saved previously. 16:36:08 # We make sure to do this after checking for cached value to avoid 16:36:08 # adding our finalizer multiple times. (#12135) 16:36:08 finalizer = functools.partial(self.finish, request=request) 16:36:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:08 parent_fixture.addfinalizer(finalizer) 16:36:08 16:36:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:08 # which is executed last. 16:36:08 > assert not self._finalizers 16:36:08 ^^^^^^^^^^^^^^^^^^^^ 16:36:08 E AssertionError 16:36:08 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:08 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_device_not_connected _ 16:36:08 16:36:08 cls = 16:36:08 func = . at 0x7f80f5512700> 16:36:08 when = 'setup' 16:36:08 reraise = (, ) 16:36:08 16:36:08 @classmethod 16:36:08 def from_call( 16:36:08 cls, 16:36:08 func: Callable[[], TResult], 16:36:08 when: Literal["collect", "setup", "call", "teardown"], 16:36:08 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:08 ) -> CallInfo[TResult]: 16:36:08 """Call func, wrapping the result in a CallInfo. 16:36:08 16:36:08 :param func: 16:36:08 The function to call. Called without arguments. 16:36:08 :type func: Callable[[], _pytest.runner.TResult] 16:36:08 :param when: 16:36:08 The phase in which the function is called. 16:36:08 :param reraise: 16:36:08 Exception or exceptions that shall propagate if raised by the 16:36:08 function, instead of being wrapped in the CallInfo. 16:36:08 """ 16:36:08 excinfo = None 16:36:08 instant = timing.Instant() 16:36:08 try: 16:36:08 > result: TResult | None = func() 16:36:08 ^^^^^^ 16:36:08 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:08 lambda: runtest_hook(item=item, **kwds), 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:08 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:08 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:08 yield 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:08 return (yield) 16:36:08 ^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:08 item.session._setupstate.setup(item) 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:08 col.setup() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:08 super().setup() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:08 self._request._fillfixtures() 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:08 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:08 fixturedef = self._get_active_fixturedef(argname) 16:36:08 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:08 fixturedef.execute(request=subrequest) 16:36:08 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:08 16:36:08 self = 16:36:08 request = > 16:36:08 16:36:08 def execute(self, request: SubRequest) -> FixtureValue: 16:36:08 """Return the value of this fixture, executing it if not cached.""" 16:36:08 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:08 # This needs to be done before checking if we have a cached value, since 16:36:08 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:08 # parametrization, they finalize themselves and fixtures depending on it 16:36:08 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:08 # See #4871 16:36:08 requested_fixtures_that_should_finalize_us = [] 16:36:08 for argname in self.argnames: 16:36:08 fixturedef = request._get_active_fixturedef(argname) 16:36:08 # Saves requested fixtures in a list so we later can add our finalizer 16:36:08 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:08 # down first. This is generally handled by SetupState, but still currently 16:36:08 # needed when this fixture is not parametrized but depends on a parametrized 16:36:08 # fixture. 16:36:08 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:08 16:36:08 # Check for (and return) cached value/exception. 16:36:08 if self.cached_result is not None: 16:36:08 request_cache_key = self.cache_key(request) 16:36:08 cache_key = self.cached_result[1] 16:36:08 try: 16:36:08 # Attempt to make a normal == check: this might fail for objects 16:36:08 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:08 cache_hit = bool(request_cache_key == cache_key) 16:36:08 except (ValueError, RuntimeError): 16:36:08 # If the comparison raises, use 'is' as fallback. 16:36:08 cache_hit = request_cache_key is cache_key 16:36:08 16:36:08 if cache_hit: 16:36:08 if self.cached_result[2] is not None: 16:36:08 exc, exc_tb = self.cached_result[2] 16:36:08 raise exc.with_traceback(exc_tb) 16:36:08 else: 16:36:08 return self.cached_result[0] 16:36:08 # We have a previous but differently parametrized fixture instance 16:36:08 # so we need to tear it down before creating a new one. 16:36:08 self.finish(request) 16:36:08 assert self.cached_result is None 16:36:08 16:36:08 # Add finalizer to requested fixtures we saved previously. 16:36:08 # We make sure to do this after checking for cached value to avoid 16:36:08 # adding our finalizer multiple times. (#12135) 16:36:08 finalizer = functools.partial(self.finish, request=request) 16:36:08 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:08 parent_fixture.addfinalizer(finalizer) 16:36:08 16:36:08 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:08 # which is executed last. 16:36:08 > assert not self._finalizers 16:36:08 ^^^^^^^^^^^^^^^^^^^^ 16:36:08 E AssertionError 16:36:08 16:36:08 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:08 =========================== short test summary info ============================ 16:36:08 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_xpdr_device_connection 16:36:08 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_xpdr_device_connected 16:36:08 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_portmapping_info 16:36:08 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_tpdr_portmapping_NETWORK1 16:36:08 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_tpdr_portmapping_CLIENT1 16:36:08 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK1 16:36:08 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 16:36:08 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_check_mccapprofile 16:36:08 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_mpdr_switching_pool 16:36:08 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 16:36:08 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_device_disconnected 16:36:08 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_device_not_connected 16:36:08 12 errors in 102.33s (0:01:42) 16:36:08 tests71: exit 1 (102.63 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh 7.1 pid=5118 16:36:12 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 16:36:21 ==================================== ERRORS ==================================== 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_01_connect_xpdrA _ 16:36:21 16:36:21 cls = 16:36:21 16:36:21 @classmethod 16:36:21 def setUpClass(cls): 16:36:21 > cls.processes = test_utils.start_tpce() 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 16:36:21 transportpce_tests/hybrid/test01_device_change_notifications.py:77: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 def start_tpce(): 16:36:21 if 'NO_ODL_STARTUP' in os.environ: 16:36:21 print('No OpenDaylight instance to start!') 16:36:21 return [] 16:36:21 print('starting OpenDaylight...') 16:36:21 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 16:36:21 process = start_lighty() 16:36:21 else: 16:36:21 process = start_karaf() 16:36:21 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 16:36:21 print('OpenDaylight started !') 16:36:21 else: 16:36:21 print('OpenDaylight failed to start !') 16:36:21 shutdown_process(process) 16:36:21 for pid in process_list: 16:36:21 shutdown_process(pid) 16:36:21 > sys.exit(1) 16:36:21 E SystemExit: 1 16:36:21 16:36:21 transportpce_tests/common/test_utils.py:233: SystemExit 16:36:21 ---------------------------- Captured stdout setup ----------------------------- 16:36:21 starting OpenDaylight... 16:36:21 starting KARAF (karaf221) TransportPCE build... 16:36:21 Pattern not found after 100 seconds! OpenDaylight failed to start ! 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_02_connect_xpdrC _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c277a3e0> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_03_connect_rdmA _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2816ac0> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_04_connect_rdmC _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c3ef27a0> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_05_connect_xpdrA_N1_to_roadmA_PP1 _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c277bba0> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_06_connect_roadmA_PP1_to_xpdrA_N1 _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c277bf60> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_07_connect_xpdrC_N1_to_roadmC_PP1 _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c277bba0> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_08_connect_roadmC_PP1_to_xpdrC_N1 _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c28163e0> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_09_add_omsAttributes_ROADMA_ROADMC _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2738360> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_10_add_omsAttributes_ROADMC_ROADMA _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c4e458a0> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_11_create_eth_service1 _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c277bf60> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_12_get_eth_service1 _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2817420> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_13_change_status_line_port_xpdra _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2738040> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_14_check_update_portmapping _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c4e458a0> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_15_check_update_openroadm_topo _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2817880> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_16_check_update_service1 _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c4e458a0> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_17_restore_status_line_port_xpdra _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2738220> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_18_check_update_portmapping_ok _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2817880> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_19_check_update_openroadm_topo_ok _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c4e458a0> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_20_check_update_service1_ok _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2738220> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_21_change_status_port_roadma_srg _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2738400> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_22_check_update_portmapping _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2738220> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_23_check_update_openroadm_topo _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2814040> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_24_restore_status_port_roadma_srg _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2738400> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_25_check_update_portmapping_ok _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2814040> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_26_check_update_openroadm_topo_ok _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2816660> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_27_check_update_service1_ok _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2738400> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_28_change_status_line_port_roadma_deg _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2816de0> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_29_check_update_portmapping _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2816ca0> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_30_check_update_openroadm_topo _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2738400> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_31_restore_status_line_port_roadma_srg _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2817d80> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_32_check_update_portmapping_ok _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c28176a0> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_33_check_update_openroadm_topo_ok _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2738400> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_34_check_update_service1_ok _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2817c40> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_35_change_status_line_port_xpdrc _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2738400> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_36_check_update_portmapping _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2817600> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_37_check_update_openroadm_topo _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2817740> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_38_restore_status_line_port_xpdrc _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2738400> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_39_check_update_portmapping_ok _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2817d80> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_40_check_update_openroadm_topo_ok _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2816ca0> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_41_check_update_service1_ok _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2738400> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_42_change_status_port_roadma_srg _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2814040> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_43_check_update_portmapping _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2817740> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_44_check_update_openroadm_topo _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2817880> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_45_check_update_service1_ok _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2738400> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_46_delete_eth_service1 _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2816660> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_47_disconnect_xponders_from_roadm _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2738400> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_48_disconnect_XPDRA _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2816b60> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_49_disconnect_XPDRC _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2816de0> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_50_disconnect_ROADMA _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c2738400> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_51_disconnect_ROADMC _ 16:36:21 16:36:21 cls = 16:36:21 func = . at 0x7f12c28163e0> 16:36:21 when = 'setup' 16:36:21 reraise = (, ) 16:36:21 16:36:21 @classmethod 16:36:21 def from_call( 16:36:21 cls, 16:36:21 func: Callable[[], TResult], 16:36:21 when: Literal["collect", "setup", "call", "teardown"], 16:36:21 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 16:36:21 ) -> CallInfo[TResult]: 16:36:21 """Call func, wrapping the result in a CallInfo. 16:36:21 16:36:21 :param func: 16:36:21 The function to call. Called without arguments. 16:36:21 :type func: Callable[[], _pytest.runner.TResult] 16:36:21 :param when: 16:36:21 The phase in which the function is called. 16:36:21 :param reraise: 16:36:21 Exception or exceptions that shall propagate if raised by the 16:36:21 function, instead of being wrapped in the CallInfo. 16:36:21 """ 16:36:21 excinfo = None 16:36:21 instant = timing.Instant() 16:36:21 try: 16:36:21 > result: TResult | None = func() 16:36:21 ^^^^^^ 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 16:36:21 lambda: runtest_hook(item=item, **kwds), 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 16:36:21 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 16:36:21 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 16:36:21 yield 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 16:36:21 return (yield) 16:36:21 ^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 16:36:21 item.session._setupstate.setup(item) 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 16:36:21 col.setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 16:36:21 super().setup() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 16:36:21 self._request._fillfixtures() 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 16:36:21 item.funcargs[argname] = self.getfixturevalue(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 16:36:21 fixturedef = self._get_active_fixturedef(argname) 16:36:21 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 16:36:21 fixturedef.execute(request=subrequest) 16:36:21 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 16:36:21 16:36:21 self = 16:36:21 request = > 16:36:21 16:36:21 def execute(self, request: SubRequest) -> FixtureValue: 16:36:21 """Return the value of this fixture, executing it if not cached.""" 16:36:21 # Ensure that the dependent fixtures requested by this fixture are loaded. 16:36:21 # This needs to be done before checking if we have a cached value, since 16:36:21 # if a dependent fixture has their cache invalidated, e.g. due to 16:36:21 # parametrization, they finalize themselves and fixtures depending on it 16:36:21 # (which will likely include this fixture) setting `self.cached_result = None`. 16:36:21 # See #4871 16:36:21 requested_fixtures_that_should_finalize_us = [] 16:36:21 for argname in self.argnames: 16:36:21 fixturedef = request._get_active_fixturedef(argname) 16:36:21 # Saves requested fixtures in a list so we later can add our finalizer 16:36:21 # to them, ensuring that if a requested fixture gets torn down we get torn 16:36:21 # down first. This is generally handled by SetupState, but still currently 16:36:21 # needed when this fixture is not parametrized but depends on a parametrized 16:36:21 # fixture. 16:36:21 requested_fixtures_that_should_finalize_us.append(fixturedef) 16:36:21 16:36:21 # Check for (and return) cached value/exception. 16:36:21 if self.cached_result is not None: 16:36:21 request_cache_key = self.cache_key(request) 16:36:21 cache_key = self.cached_result[1] 16:36:21 try: 16:36:21 # Attempt to make a normal == check: this might fail for objects 16:36:21 # which do not implement the standard comparison (like numpy arrays -- #6497). 16:36:21 cache_hit = bool(request_cache_key == cache_key) 16:36:21 except (ValueError, RuntimeError): 16:36:21 # If the comparison raises, use 'is' as fallback. 16:36:21 cache_hit = request_cache_key is cache_key 16:36:21 16:36:21 if cache_hit: 16:36:21 if self.cached_result[2] is not None: 16:36:21 exc, exc_tb = self.cached_result[2] 16:36:21 raise exc.with_traceback(exc_tb) 16:36:21 else: 16:36:21 return self.cached_result[0] 16:36:21 # We have a previous but differently parametrized fixture instance 16:36:21 # so we need to tear it down before creating a new one. 16:36:21 self.finish(request) 16:36:21 assert self.cached_result is None 16:36:21 16:36:21 # Add finalizer to requested fixtures we saved previously. 16:36:21 # We make sure to do this after checking for cached value to avoid 16:36:21 # adding our finalizer multiple times. (#12135) 16:36:21 finalizer = functools.partial(self.finish, request=request) 16:36:21 for parent_fixture in requested_fixtures_that_should_finalize_us: 16:36:21 parent_fixture.addfinalizer(finalizer) 16:36:21 16:36:21 # Register the pytest_fixture_post_finalizer as the first finalizer, 16:36:21 # which is executed last. 16:36:21 > assert not self._finalizers 16:36:21 ^^^^^^^^^^^^^^^^^^^^ 16:36:21 E AssertionError 16:36:21 16:36:21 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 16:36:21 =========================== short test summary info ============================ 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_01_connect_xpdrA 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_02_connect_xpdrC 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_03_connect_rdmA 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_04_connect_rdmC 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_05_connect_xpdrA_N1_to_roadmA_PP1 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_06_connect_roadmA_PP1_to_xpdrA_N1 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_07_connect_xpdrC_N1_to_roadmC_PP1 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_08_connect_roadmC_PP1_to_xpdrC_N1 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_09_add_omsAttributes_ROADMA_ROADMC 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_10_add_omsAttributes_ROADMC_ROADMA 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_11_create_eth_service1 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_12_get_eth_service1 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_13_change_status_line_port_xpdra 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_14_check_update_portmapping 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_15_check_update_openroadm_topo 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_16_check_update_service1 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_17_restore_status_line_port_xpdra 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_18_check_update_portmapping_ok 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_19_check_update_openroadm_topo_ok 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_20_check_update_service1_ok 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_21_change_status_port_roadma_srg 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_22_check_update_portmapping 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_23_check_update_openroadm_topo 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_24_restore_status_port_roadma_srg 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_25_check_update_portmapping_ok 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_26_check_update_openroadm_topo_ok 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_27_check_update_service1_ok 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_28_change_status_line_port_roadma_deg 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_29_check_update_portmapping 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_30_check_update_openroadm_topo 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_31_restore_status_line_port_roadma_srg 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_32_check_update_portmapping_ok 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_33_check_update_openroadm_topo_ok 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_34_check_update_service1_ok 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_35_change_status_line_port_xpdrc 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_36_check_update_portmapping 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_37_check_update_openroadm_topo 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_38_restore_status_line_port_xpdrc 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_39_check_update_portmapping_ok 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_40_check_update_openroadm_topo_ok 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_41_check_update_service1_ok 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_42_change_status_port_roadma_srg 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_43_check_update_portmapping 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_44_check_update_openroadm_topo 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_45_check_update_service1_ok 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_46_delete_eth_service1 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_47_disconnect_xponders_from_roadm 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_48_disconnect_XPDRA 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_49_disconnect_XPDRC 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_50_disconnect_ROADMA 16:36:21 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_51_disconnect_ROADMC 16:36:21 51 errors in 109.67s (0:01:49) 16:36:21 tests71: FAIL ✖ in 1 minute 49.35 seconds 16:36:21 tests_hybrid: exit 1 (109.96 seconds) /w/workspace/transportpce-tox-verify-chromium/tests> ./launch_tests.sh hybrid pid=5134 16:36:21 buildcontroller: FAIL code 1 (20.79=setup[8.82]+cmd[11.97] seconds) 16:36:21 sims: OK (16.67=setup[9.36]+cmd[7.30] seconds) 16:36:21 build_karaf_tests121: FAIL code 127 (16.44=setup[7.69]+cmd[8.75] seconds) 16:36:21 testsPCE: FAIL code 1 (172.62=setup[48.21]+cmd[124.41] seconds) 16:36:21 tests121: FAIL code 1 (112.49=setup[7.89]+cmd[104.60] seconds) 16:36:21 build_karaf_tests221: FAIL code 127 (16.39=setup[7.59]+cmd[8.80] seconds) 16:36:21 tests_tapi: FAIL code 1 (117.79=setup[7.86]+cmd[109.93] seconds) 16:36:21 tests221: FAIL code 1 (114.88=setup[7.90]+cmd[106.98] seconds) 16:36:21 build_karaf_tests71: FAIL code 127 (12.63=setup[6.77]+cmd[5.86] seconds) 16:36:21 tests71: FAIL code 1 (109.35=setup[6.72]+cmd[102.63] seconds) 16:36:21 build_karaf_tests200: FAIL code 127 (13.20=setup[7.21]+cmd[5.99] seconds) 16:36:21 tests200: FAIL code 1 (110.29=setup[8.09]+cmd[102.20] seconds) 16:36:21 tests_hybrid: FAIL code 1 (117.47=setup[7.51]+cmd[109.96] seconds) 16:36:21 buildlighty: FAIL code 9 (20.96=setup[8.77]+cmd[12.18] seconds) 16:36:21 docs: OK (19.53=setup[16.55]+cmd[2.98] seconds) 16:36:21 docs-linkcheck: OK (20.33=setup[16.22]+cmd[4.11] seconds) 16:36:21 checkbashisms: OK (3.30=setup[2.03]+cmd[0.00,0.04,1.23] seconds) 16:36:21 pre-commit: OK (67.89=setup[3.05]+cmd[0.00,0.00,55.32,9.51] seconds) 16:36:21 pylint: OK (34.52=setup[3.82]+cmd[30.70] seconds) 16:36:21 evaluation failed :( (576.88 seconds) 16:36:21 + tox_status=1 16:36:21 + echo '---> Completed tox runs' 16:36:21 ---> Completed tox runs 16:36:21 + for i in .tox/*/log 16:36:21 ++ echo .tox/build_karaf_tests121/log 16:36:21 ++ awk -F/ '{print $2}' 16:36:21 + tox_env=build_karaf_tests121 16:36:21 + cp -r .tox/build_karaf_tests121/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/build_karaf_tests121 16:36:21 + for i in .tox/*/log 16:36:21 ++ echo .tox/build_karaf_tests200/log 16:36:21 ++ awk -F/ '{print $2}' 16:36:21 + tox_env=build_karaf_tests200 16:36:21 + cp -r .tox/build_karaf_tests200/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/build_karaf_tests200 16:36:21 + for i in .tox/*/log 16:36:21 ++ awk -F/ '{print $2}' 16:36:21 ++ echo .tox/build_karaf_tests221/log 16:36:21 + tox_env=build_karaf_tests221 16:36:21 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/build_karaf_tests221 16:36:21 + for i in .tox/*/log 16:36:21 ++ echo .tox/build_karaf_tests71/log 16:36:21 ++ awk -F/ '{print $2}' 16:36:21 + tox_env=build_karaf_tests71 16:36:21 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/build_karaf_tests71 16:36:21 + for i in .tox/*/log 16:36:21 ++ echo .tox/buildcontroller/log 16:36:21 ++ awk -F/ '{print $2}' 16:36:21 + tox_env=buildcontroller 16:36:21 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/buildcontroller 16:36:21 + for i in .tox/*/log 16:36:21 ++ echo .tox/buildlighty/log 16:36:21 ++ awk -F/ '{print $2}' 16:36:21 + tox_env=buildlighty 16:36:21 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/buildlighty 16:36:21 + for i in .tox/*/log 16:36:21 ++ echo .tox/checkbashisms/log 16:36:21 ++ awk -F/ '{print $2}' 16:36:21 + tox_env=checkbashisms 16:36:21 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/checkbashisms 16:36:21 + for i in .tox/*/log 16:36:21 ++ echo .tox/docs-linkcheck/log 16:36:21 ++ awk -F/ '{print $2}' 16:36:21 + tox_env=docs-linkcheck 16:36:21 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/docs-linkcheck 16:36:21 + for i in .tox/*/log 16:36:21 ++ echo .tox/docs/log 16:36:21 ++ awk -F/ '{print $2}' 16:36:21 + tox_env=docs 16:36:21 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/docs 16:36:21 + for i in .tox/*/log 16:36:21 ++ echo .tox/pre-commit/log 16:36:21 ++ awk -F/ '{print $2}' 16:36:21 + tox_env=pre-commit 16:36:21 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/pre-commit 16:36:21 + for i in .tox/*/log 16:36:21 ++ echo .tox/pylint/log 16:36:21 ++ awk -F/ '{print $2}' 16:36:21 + tox_env=pylint 16:36:21 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/pylint 16:36:21 + for i in .tox/*/log 16:36:21 ++ echo .tox/sims/log 16:36:21 ++ awk -F/ '{print $2}' 16:36:21 + tox_env=sims 16:36:21 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/sims 16:36:21 + for i in .tox/*/log 16:36:21 ++ echo .tox/tests121/log 16:36:21 ++ awk -F/ '{print $2}' 16:36:21 + tox_env=tests121 16:36:21 + cp -r .tox/tests121/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/tests121 16:36:21 + for i in .tox/*/log 16:36:21 ++ echo .tox/tests200/log 16:36:21 ++ awk -F/ '{print $2}' 16:36:21 + tox_env=tests200 16:36:21 + cp -r .tox/tests200/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/tests200 16:36:21 + for i in .tox/*/log 16:36:21 ++ echo .tox/tests221/log 16:36:21 ++ awk -F/ '{print $2}' 16:36:21 + tox_env=tests221 16:36:21 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/tests221 16:36:21 + for i in .tox/*/log 16:36:21 ++ echo .tox/tests71/log 16:36:21 ++ awk -F/ '{print $2}' 16:36:21 + tox_env=tests71 16:36:21 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/tests71 16:36:21 + for i in .tox/*/log 16:36:21 ++ echo .tox/testsPCE/log 16:36:21 ++ awk -F/ '{print $2}' 16:36:21 + tox_env=testsPCE 16:36:21 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/testsPCE 16:36:21 + for i in .tox/*/log 16:36:21 ++ echo .tox/tests_hybrid/log 16:36:21 ++ awk -F/ '{print $2}' 16:36:21 + tox_env=tests_hybrid 16:36:21 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/tests_hybrid 16:36:21 + for i in .tox/*/log 16:36:21 ++ echo .tox/tests_tapi/log 16:36:21 ++ awk -F/ '{print $2}' 16:36:21 + tox_env=tests_tapi 16:36:21 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-chromium/archives/tox/tests_tapi 16:36:21 + DOC_DIR=docs/_build/html 16:36:21 + [[ -d docs/_build/html ]] 16:36:21 + echo '---> Archiving generated docs' 16:36:21 ---> Archiving generated docs 16:36:21 + mv docs/_build/html /w/workspace/transportpce-tox-verify-chromium/archives/docs 16:36:21 + echo '---> tox-run.sh ends' 16:36:21 ---> tox-run.sh ends 16:36:21 + test 1 -eq 0 16:36:21 + exit 1 16:36:21 ++ '[' 1 = 1 ']' 16:36:21 ++ '[' -x /usr/bin/clear_console ']' 16:36:21 ++ /usr/bin/clear_console -q 16:36:21 Build step 'Execute shell' marked build as failure 16:36:21 $ ssh-agent -k 16:36:21 unset SSH_AUTH_SOCK; 16:36:21 unset SSH_AGENT_PID; 16:36:21 echo Agent pid 1563 killed; 16:36:21 [ssh-agent] Stopped. 16:36:21 [PostBuildScript] - [INFO] Executing post build scripts. 16:36:21 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins11553729387091987342.sh 16:36:21 ---> sysstat.sh 16:36:22 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins9126891547630226388.sh 16:36:22 ---> package-listing.sh 16:36:22 ++ facter osfamily 16:36:22 ++ tr '[:upper:]' '[:lower:]' 16:36:22 + OS_FAMILY=debian 16:36:22 + workspace=/w/workspace/transportpce-tox-verify-chromium 16:36:22 + START_PACKAGES=/tmp/packages_start.txt 16:36:22 + END_PACKAGES=/tmp/packages_end.txt 16:36:22 + DIFF_PACKAGES=/tmp/packages_diff.txt 16:36:22 + PACKAGES=/tmp/packages_start.txt 16:36:22 + '[' /w/workspace/transportpce-tox-verify-chromium ']' 16:36:22 + PACKAGES=/tmp/packages_end.txt 16:36:22 + case "${OS_FAMILY}" in 16:36:22 + dpkg -l 16:36:22 + grep '^ii' 16:36:22 + '[' -f /tmp/packages_start.txt ']' 16:36:22 + '[' -f /tmp/packages_end.txt ']' 16:36:22 + diff /tmp/packages_start.txt /tmp/packages_end.txt 16:36:22 + '[' /w/workspace/transportpce-tox-verify-chromium ']' 16:36:22 + mkdir -p /w/workspace/transportpce-tox-verify-chromium/archives/ 16:36:22 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-chromium/archives/ 16:36:22 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins16312486048039268967.sh 16:36:22 ---> capture-instance-metadata.sh 16:36:22 Setup pyenv: 16:36:22 system 16:36:22 3.8.20 16:36:22 3.9.20 16:36:22 3.10.15 16:36:22 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-chromium/.python-version) 16:36:23 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-efx2 from file:/tmp/.os_lf_venv 16:36:23 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 16:36:25 lf-activate-venv(): INFO: Installing additional packages: lftools 16:36:40 lf-activate-venv(): INFO: Adding /tmp/venv-efx2/bin to PATH 16:36:40 INFO: Running in OpenStack, capturing instance metadata 16:36:42 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins6577551066247543775.sh 16:36:42 provisioning config files... 16:36:42 Could not find credentials [logs] for transportpce-tox-verify-chromium #7 16:36:42 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-chromium@tmp/config9897362972328819510tmp 16:36:42 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 16:36:42 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 16:36:42 provisioning config files... 16:36:43 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 16:36:43 [EnvInject] - Injecting environment variables from a build step. 16:36:43 [EnvInject] - Injecting as environment variables the properties content 16:36:43 SERVER_ID=logs 16:36:43 16:36:43 [EnvInject] - Variables injected successfully. 16:36:43 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins5566292598857768768.sh 16:36:43 ---> create-netrc.sh 16:36:43 WARN: Log server credential not found. 16:36:43 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins9577826750148711402.sh 16:36:43 ---> python-tools-install.sh 16:36:43 Setup pyenv: 16:36:43 system 16:36:43 3.8.20 16:36:43 3.9.20 16:36:43 3.10.15 16:36:43 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-chromium/.python-version) 16:36:43 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-efx2 from file:/tmp/.os_lf_venv 16:36:43 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 16:36:45 lf-activate-venv(): INFO: Installing additional packages: lftools 16:36:54 lf-activate-venv(): INFO: Adding /tmp/venv-efx2/bin to PATH 16:36:54 [transportpce-tox-verify-chromium] $ /bin/sh /tmp/jenkins8032729483841526641.sh 16:36:54 ---> uv-install.sh 16:36:54 uv 0.12.11 is already installed 16:36:54 uvx 0.12.11 (x86_64-unknown-linux-gnu) 16:36:54 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins11820451857605072003.sh 16:36:54 ---> sudo-logs.sh 16:36:54 Archiving 'sudo' log.. 16:36:54 [transportpce-tox-verify-chromium] $ /bin/bash /tmp/jenkins16284227523689722696.sh 16:36:54 ---> job-cost.sh 16:36:54 INFO: Activating Python virtual environment... 16:36:54 Setup pyenv: 16:36:55 system 16:36:55 3.8.20 16:36:55 3.9.20 16:36:55 3.10.15 16:36:55 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-chromium/.python-version) 16:36:55 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-efx2 from file:/tmp/.os_lf_venv 16:36:55 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 16:36:57 lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 16:37:04 lf-activate-venv(): INFO: Adding /tmp/venv-efx2/bin to PATH 16:37:04 INFO: No stack-cost file found 16:37:04 INFO: Instance uptime: 802s 16:37:04 INFO: Fetching instance metadata (attempt 1 of 3)... 16:37:04 DEBUG: URL: http://169.254.169.254/latest/meta-data/instance-type 16:37:04 INFO: Successfully fetched instance metadata 16:37:04 INFO: Instance type: v3-standard-4 16:37:04 INFO: Retrieving pricing info for: v3-standard-4 16:37:04 INFO: Fetching Vexxhost pricing API (attempt 1 of 3)... 16:37:04 DEBUG: URL: https://pricing.vexxhost.net/v1/pricing/v3-standard-4/cost?seconds=802 16:37:04 INFO: Successfully fetched Vexxhost pricing API 16:37:04 INFO: Retrieved cost: 0.11 16:37:05 INFO: Retrieved resource: v3-standard-4 16:37:05 INFO: Creating archive directory: /w/workspace/transportpce-tox-verify-chromium/archives/cost 16:37:05 INFO: Archiving costs to: /w/workspace/transportpce-tox-verify-chromium/archives/cost.csv 16:37:05 INFO: Successfully archived job cost data 16:37:05 DEBUG: Cost data: transportpce-tox-verify-chromium,7,2026-09-09 16:37:05,v3-standard-4,802,0.11,0.00,FAILURE 16:37:05 [transportpce-tox-verify-chromium] $ /bin/bash -l /tmp/jenkins5029772769631809246.sh 16:37:05 ---> logs-deploy.sh 16:37:05 Setup pyenv: 16:37:05 system 16:37:05 3.8.20 16:37:05 3.9.20 16:37:05 3.10.15 16:37:05 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-chromium/.python-version) 16:37:05 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-efx2 from file:/tmp/.os_lf_venv 16:37:05 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 16:37:07 lf-activate-venv(): INFO: Installing additional packages: lftools urllib3~=1.26.15 16:37:15 lf-activate-venv(): INFO: Adding /tmp/venv-efx2/bin to PATH 16:37:15 WARNING: Nexus logging server not set 16:37:15 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-chromium/7/ 16:37:15 INFO: archiving logs to S3 16:37:16 ---> uname -a: 16:37:16 Linux prd-ubuntu2204-docker-4c-16g-6411 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:37:16 16:37:16 16:37:16 ---> lscpu: 16:37:16 Architecture: x86_64 16:37:16 CPU op-mode(s): 32-bit, 64-bit 16:37:16 Address sizes: 40 bits physical, 48 bits virtual 16:37:16 Byte Order: Little Endian 16:37:16 CPU(s): 4 16:37:16 On-line CPU(s) list: 0-3 16:37:16 Vendor ID: AuthenticAMD 16:37:16 Model name: AMD EPYC-Rome Processor 16:37:16 CPU family: 23 16:37:16 Model: 49 16:37:16 Thread(s) per core: 1 16:37:16 Core(s) per socket: 1 16:37:16 Socket(s): 4 16:37:16 Stepping: 0 16:37:16 BogoMIPS: 5599.99 16:37:16 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:37:16 Virtualization: AMD-V 16:37:16 Hypervisor vendor: KVM 16:37:16 Virtualization type: full 16:37:16 L1d cache: 128 KiB (4 instances) 16:37:16 L1i cache: 128 KiB (4 instances) 16:37:16 L2 cache: 2 MiB (4 instances) 16:37:16 L3 cache: 64 MiB (4 instances) 16:37:16 NUMA node(s): 1 16:37:16 NUMA node0 CPU(s): 0-3 16:37:16 Vulnerability Gather data sampling: Not affected 16:37:16 Vulnerability Indirect target selection: Not affected 16:37:16 Vulnerability Itlb multihit: Not affected 16:37:16 Vulnerability L1tf: Not affected 16:37:16 Vulnerability Mds: Not affected 16:37:16 Vulnerability Meltdown: Not affected 16:37:16 Vulnerability Mmio stale data: Not affected 16:37:16 Vulnerability Reg file data sampling: Not affected 16:37:16 Vulnerability Retbleed: Mitigation; untrained return thunk; SMT disabled 16:37:16 Vulnerability Spec rstack overflow: Mitigation; SMT disabled 16:37:16 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 16:37:16 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 16:37:16 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 16:37:16 Vulnerability Srbds: Not affected 16:37:16 Vulnerability Tsa: Not affected 16:37:16 Vulnerability Tsx async abort: Not affected 16:37:16 Vulnerability Vmscape: Not affected 16:37:16 16:37:16 16:37:16 ---> nproc: 16:37:16 4 16:37:16 16:37:16 16:37:16 ---> df -h: 16:37:16 Filesystem Size Used Avail Use% Mounted on 16:37:16 tmpfs 1.6G 1.1M 1.6G 1% /run 16:37:16 /dev/vda1 78G 12G 67G 15% / 16:37:16 tmpfs 7.9G 0 7.9G 0% /dev/shm 16:37:16 tmpfs 5.0M 0 5.0M 0% /run/lock 16:37:16 /dev/vda15 105M 6.1M 99M 6% /boot/efi 16:37:16 tmpfs 1.6G 4.0K 1.6G 1% /run/user/1001 16:37:16 16:37:16 16:37:16 ---> free -m: 16:37:16 total used free shared buff/cache available 16:37:16 Mem: 15989 737 9297 4 5954 14908 16:37:16 Swap: 1023 0 1023 16:37:16 16:37:16 16:37:16 ---> ip addr: 16:37:16 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 16:37:16 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 16:37:16 inet 127.0.0.1/8 scope host lo 16:37:16 valid_lft forever preferred_lft forever 16:37:16 inet6 ::1/128 scope host 16:37:16 valid_lft forever preferred_lft forever 16:37:16 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 16:37:16 link/ether fa:16:3e:8e:22:5f brd ff:ff:ff:ff:ff:ff 16:37:16 altname enp0s3 16:37:16 inet 10.30.171.87/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 16:37:16 valid_lft 85594sec preferred_lft 85594sec 16:37:16 inet6 fe80::f816:3eff:fe8e:225f/64 scope link 16:37:16 valid_lft forever preferred_lft forever 16:37:16 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 16:37:16 link/ether c6:d1:e1:83:14:7e brd ff:ff:ff:ff:ff:ff 16:37:16 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 16:37:16 valid_lft forever preferred_lft forever 16:37:16 inet6 fe80::c4d1:e1ff:fe83:147e/64 scope link 16:37:16 valid_lft forever preferred_lft forever 16:37:16 16:37:16 16:37:16 ---> sar -b -r -n DEV: 16:37:16 Linux 5.15.0-190-generic (prd-ubuntu2204-docker-4c-16g-6411) 09/09/26 _x86_64_ (4 CPU) 16:37:16 16:37:16 16:23:55 LINUX RESTART (4 CPU) 16:37:16 16:37:16 16:37:16 ---> sar -P ALL: 16:37:16 Linux 5.15.0-190-generic (prd-ubuntu2204-docker-4c-16g-6411) 09/09/26 _x86_64_ (4 CPU) 16:37:16 16:37:16 16:23:55 LINUX RESTART (4 CPU) 16:37:16 16:37:16 16:37:16