21:11:21 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/126846 21:11:21 Running as SYSTEM 21:11:21 [EnvInject] - Loading node environment variables. 21:11:21 Building remotely on prd-ubuntu2204-docker-4c-16g-68571 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-transportpce-master 21:11:22 [ssh-agent] Looking for ssh-agent implementation... 21:11:22 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 21:11:22 $ ssh-agent 21:11:22 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXsbCcBV/agent.1568 21:11:22 SSH_AGENT_PID=1570 21:11:22 [ssh-agent] Started. 21:11:22 Running ssh-add (command line suppressed) 21:11:22 Identity added: /w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_6494289473669611513.key (/w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_6494289473669611513.key) 21:11:22 [ssh-agent] Using credentials jenkins (jenkins-ssh) 21:11:22 The recommended git tool is: NONE 21:11:25 using credential jenkins-ssh 21:11:25 Wiping out workspace first. 21:11:25 Cloning the remote Git repository 21:11:25 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 21:11:25 > git init /w/workspace/transportpce-tox-verify-transportpce-master # timeout=10 21:11:25 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 21:11:25 > git --version # timeout=10 21:11:25 > git --version # 'git version 2.34.1' 21:11:25 using GIT_SSH to set credentials jenkins-ssh 21:11:25 Verifying host key using known hosts file, will automatically accept unseen keys 21:11:25 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 21:11:28 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 21:11:28 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 21:11:29 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 21:11:29 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 21:11:29 using GIT_SSH to set credentials jenkins-ssh 21:11:29 Verifying host key using known hosts file, will automatically accept unseen keys 21:11:29 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/46/126846/4 # timeout=10 21:11:29 > git rev-parse d9df3c6dbf1403e44405bb63cb11a611c37a0a80^{commit} # timeout=10 21:11:29 JENKINS-19022: warning: possible memory leak due to Git plugin usage; see: https://plugins.jenkins.io/git/#remove-git-plugin-buildsbybranch-builddata-script 21:11:29 Checking out Revision d9df3c6dbf1403e44405bb63cb11a611c37a0a80 (refs/changes/46/126846/4) 21:11:29 > git config core.sparsecheckout # timeout=10 21:11:29 > git checkout -f d9df3c6dbf1403e44405bb63cb11a611c37a0a80 # timeout=10 21:11:29 Commit message: "renderer: add per-RPC request limiter" 21:11:29 > git rev-parse FETCH_HEAD^{commit} # timeout=10 21:11:29 > git rev-list --no-walk 7e14f89bce5e8a580c93291776e349d831e0ed1a # timeout=10 21:11:30 > git remote # timeout=10 21:11:30 > git submodule init # timeout=10 21:11:30 > git submodule sync # timeout=10 21:11:30 > git config --get remote.origin.url # timeout=10 21:11:30 > git submodule init # timeout=10 21:11:30 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 21:11:30 ERROR: No submodules found. 21:11:33 provisioning config files... 21:11:33 copy managed file [npmrc] to file:/home/jenkins/.npmrc 21:11:33 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 21:11:33 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins17497235287642995838.sh 21:11:33 ---> python-tools-install.sh 21:11:33 Setup pyenv: 21:11:33 * system (set by /opt/pyenv/version) 21:11:33 * 3.8.20 (set by /opt/pyenv/version) 21:11:33 * 3.9.20 (set by /opt/pyenv/version) 21:11:33 3.10.15 21:11:33 3.11.10 21:11:38 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-51kJ 21:11:38 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 21:11:38 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 21:11:43 lf-activate-venv(): INFO: Installing additional packages: lftools 21:12:09 lf-activate-venv(): INFO: Adding /tmp/venv-51kJ/bin to PATH 21:12:09 Generating Requirements File 21:12:44 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. 21:12:44 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 21:12:44 botocore 1.43.123 requires python-dateutil<3.0.0,>=2.1, but you have python-dateutil 4.0.0 which is incompatible. 21:12:45 Python 3.11.10 21:12:45 pip 26.3 from /tmp/venv-51kJ/lib/python3.11/site-packages/pip (python 3.11) 21:12:45 aiohappyeyeballs==2.7.1 21:12:45 aiohttp==3.14.5 21:12:45 aiosignal==1.4.0 21:12:45 appdirs==1.4.4 21:12:45 argcomplete==3.7.2 21:12:45 aspy.yaml==1.3.0 21:12:45 attrs==26.1.0 21:12:45 autopage==0.6.0 21:12:45 beautifulsoup4==4.15.0 21:12:45 boto3==1.43.123 21:12:45 botocore==1.43.123 21:12:45 bs4==0.0.2 21:12:45 certifi==2026.10.23 21:12:45 cffi==2.1.1 21:12:45 cfgv==3.5.0 21:12:45 chardet==7.7.0 21:12:45 charset-normalizer==3.5.2 21:12:45 click==8.5.0 21:12:45 cliff==4.17.0 21:12:45 cmd2==4.4.1 21:12:45 cryptography==3.3.2 21:12:45 debtcollector==3.1.0 21:12:45 decorator==5.3.1 21:12:45 defusedxml==0.7.1 21:12:45 Deprecated==1.3.1 21:12:45 distlib==0.4.4 21:12:45 dnspython==2.9.2 21:12:45 docker==7.2.0 21:12:45 dogpile.cache==1.5.0 21:12:45 durationpy==0.11 21:12:45 email-validator==2.3.0 21:12:45 filelock==4.2.9 21:12:45 frozenlist==1.8.0 21:12:45 future==1.0.0 21:12:45 gitdb==4.0.12 21:12:45 GitPython==3.2.1 21:12:45 httplib2==0.30.2 21:12:45 identify==2.6.20 21:12:45 idna==3.20 21:12:45 importlib-resources==1.5.0 21:12:45 iso8601==2.1.0 21:12:45 Jinja2==3.1.6 21:12:45 jmespath==1.1.0 21:12:45 jsonpatch==1.42 21:12:45 jsonpointer==3.8 21:12:45 jsonschema==4.26.0 21:12:45 jsonschema-specifications==2025.9.1 21:12:45 keystoneauth1==5.18.1 21:12:45 kubernetes==36.0.3 21:12:45 lftools==0.37.26 21:12:45 lxml==6.1.3 21:12:45 markdown-it-py==4.2.0 21:12:45 MarkupSafe==3.0.4 21:12:45 mdurl==0.1.2 21:12:45 msgpack==1.2.4 21:12:45 multi_key_dict==2.0.4 21:12:45 multidict==7.2.1 21:12:45 munch==4.0.0 21:12:45 netaddr==1.3.0 21:12:45 niet==1.4.2 21:12:45 nodeenv==1.12.0 21:12:45 oauth2client==4.1.3 21:12:45 oauthlib==4.0.1 21:12:45 openstacksdk==4.22.0 21:12:45 os-service-types==1.9.0 21:12:45 osc-lib==4.7.0 21:12:45 oslo.config==10.8.0 21:12:45 oslo.context==6.5.0 21:12:45 oslo.i18n==6.9.0 21:12:45 oslo.log==8.3.2 21:12:45 oslo.serialization==5.11.0 21:12:45 oslo.utils==10.2.0 21:12:45 packaging==26.3 21:12:45 pbr==7.1.3 21:12:45 platformdirs==4.14.5 21:12:45 prettytable==3.18.0 21:12:45 prompt_toolkit==3.0.53 21:12:45 propcache==0.5.4 21:12:45 psutil==7.2.2 21:12:45 pyasn1==0.6.5 21:12:45 pyasn1_modules==0.4.2 21:12:45 pycparser==3.12 21:12:45 pygerrit2==2.0.15 21:12:45 PyGithub==2.10.0 21:12:45 Pygments==2.21.0 21:12:45 PyJWT==2.15.1 21:12:45 PyNaCl==1.6.2 21:12:45 pyparsing==2.4.7 21:12:45 pyperclip==1.11.0 21:12:45 pyrsistent==0.20.0 21:12:45 python-dateutil==4.0.0 21:12:45 python-discovery==1.9.4 21:12:45 python-heatclient==5.3.0 21:12:45 python-jenkins==1.8.3 21:12:45 python-keystoneclient==6.0.0 21:12:45 python-magnumclient==5.0.0 21:12:45 python-manilaclient==6.3.0 21:12:45 python-openstackclient==10.5.0 21:12:45 python-swiftclient==4.11.0 21:12:45 PyYAML==6.0.3 21:12:45 referencing==0.37.0 21:12:45 requests==2.34.2 21:12:45 requests-oauthlib==2.0.0 21:12:45 rfc3986==2.0.0 21:12:45 rich==15.0.0 21:12:45 rich-argparse==1.8.0 21:12:45 rpds-py==2026.9.1 21:12:45 rsa==4.9.1 21:12:45 ruamel.yaml==0.19.1 21:12:45 ruamel.yaml.clib==0.2.15 21:12:45 s3transfer==0.19.3 21:12:45 simplejson==4.2.0 21:12:45 six==1.17.0 21:12:45 smmap==5.0.3 21:12:45 soupsieve==4.0.1 21:12:45 stevedore==5.9.1 21:12:45 tabulate==0.10.0 21:12:45 toml==0.10.2 21:12:45 tomlkit==0.15.2 21:12:45 tqdm==4.70.1 21:12:45 typing_extensions==4.16.0 21:12:45 tzdata==2026.6 21:12:45 urllib3==1.26.20 21:12:45 virtualenv==21.15.5 21:12:45 wcwidth==0.9.4 21:12:45 websocket-client==1.9.2 21:12:45 wrapt==2.5.2 21:12:45 xdg==6.0.0 21:12:45 xmltodict==1.0.4 21:12:45 yarl==1.25.1 21:12:45 yq==4.4.5 21:12:45 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins14031863125742182025.sh 21:12:45 ---> uv-install.sh 21:12:45 Installing uv/uvx (latest) using shell installer 21:12:46 2026-11-04 21:12:46 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71300/71300] -> "/tmp/uv-install-pLJZPD.sh" [1] 21:12:46 downloading uv 0.13.7 x86_64-unknown-linux-gnu 21:12:46 installing to /home/jenkins/.local/bin 21:12:46 uv 21:12:46 uvx 21:12:46 everything's installed! 21:12:47 21:12:47 To add $HOME/.local/bin to your PATH, either restart your shell or run: 21:12:47 21:12:47 source $HOME/.local/bin/env (sh, bash, zsh) 21:12:47 source $HOME/.local/bin/env.fish (fish) 21:12:47 Adding install location to PATH 21:12:47 ---> Validating uv/uvx install 21:12:47 uvx 0.13.7 (x86_64-unknown-linux-gnu) 21:12:47 [EnvInject] - Injecting environment variables from a build step. 21:12:47 [EnvInject] - Injecting as environment variables the properties content 21:12:47 PYTHON=python3 21:12:47 21:12:47 [EnvInject] - Variables injected successfully. 21:12:47 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins2024033681271762907.sh 21:12:47 ---> tox-install.sh 21:12:47 + source /home/jenkins/lf-env.sh 21:12:47 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 21:12:47 ++ mktemp -d /tmp/venv-XXXX 21:12:47 + lf_venv=/tmp/venv-qeXT 21:12:47 + local venv_file=/tmp/.os_lf_venv 21:12:47 + local python=python3 21:12:47 + local options 21:12:47 + local set_path=true 21:12:47 + local install_args= 21:12:47 ++ 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 21:12:47 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 21:12:47 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 21:12:47 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 21:12:47 + true 21:12:47 + case $1 in 21:12:47 + venv_file=/tmp/.toxenv 21:12:47 + shift 2 21:12:47 + true 21:12:47 + case $1 in 21:12:47 + shift 21:12:47 + break 21:12:47 + case $python in 21:12:47 + local pkg_list= 21:12:47 + [[ -d /opt/pyenv ]] 21:12:47 + echo 'Setup pyenv:' 21:12:47 Setup pyenv: 21:12:47 + export PYENV_ROOT=/opt/pyenv 21:12:47 + PYENV_ROOT=/opt/pyenv 21:12:47 + 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 21:12:47 + 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 21:12:47 + pyenv versions 21:12:47 system 21:12:47 3.8.20 21:12:47 3.9.20 21:12:47 3.10.15 21:12:47 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 21:12:47 + command -v pyenv 21:12:47 ++ pyenv init - --no-rehash 21:12:47 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 21:12:47 for i in ${!paths[@]}; do 21:12:47 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 21:12:47 fi; done; 21:12:47 echo "${paths[*]}"'\'')" 21:12:47 export PATH="/opt/pyenv/shims:${PATH}" 21:12:47 export PYENV_SHELL=bash 21:12:47 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 21:12:47 pyenv() { 21:12:47 local command 21:12:47 command="${1:-}" 21:12:47 if [ "$#" -gt 0 ]; then 21:12:47 shift 21:12:47 fi 21:12:47 21:12:47 case "$command" in 21:12:47 rehash|shell) 21:12:47 eval "$(pyenv "sh-$command" "$@")" 21:12:47 ;; 21:12:47 *) 21:12:47 command pyenv "$command" "$@" 21:12:47 ;; 21:12:47 esac 21:12:47 }' 21:12:47 +++ bash --norc -ec 'IFS=:; paths=($PATH); 21:12:47 for i in ${!paths[@]}; do 21:12:47 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 21:12:47 fi; done; 21:12:47 echo "${paths[*]}"' 21:12:47 ++ 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 21:12:47 ++ 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 21:12:47 ++ 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 21:12:47 ++ export PYENV_SHELL=bash 21:12:47 ++ PYENV_SHELL=bash 21:12:47 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 21:12:47 +++ complete -F _pyenv pyenv 21:12:47 ++ lf-pyver python3 21:12:47 ++ local py_version_xy=python3 21:12:47 ++ local py_version_xyz= 21:12:47 ++ sed 's/^[ *]* //' 21:12:47 ++ pyenv versions 21:12:47 ++ awk '{ print $1 }' 21:12:47 ++ local command 21:12:47 ++ command=versions 21:12:47 ++ '[' 1 -gt 0 ']' 21:12:47 ++ shift 21:12:47 ++ case "$command" in 21:12:47 ++ command pyenv versions 21:12:47 ++ grep -E '^[0-9.]*[0-9]$' 21:12:47 ++ [[ ! -s /tmp/.pyenv_versions ]] 21:12:47 +++ grep '^3' /tmp/.pyenv_versions 21:12:47 +++ sort -V 21:12:47 +++ tail -n 1 21:12:47 ++ py_version_xyz=3.11.10 21:12:47 ++ [[ -z 3.11.10 ]] 21:12:47 ++ echo 3.11.10 21:12:47 ++ return 0 21:12:47 + pyenv local 3.11.10 21:12:47 + local command 21:12:47 + command=local 21:12:47 + '[' 2 -gt 0 ']' 21:12:47 + shift 21:12:47 + case "$command" in 21:12:47 + command pyenv local 3.11.10 21:12:47 + for arg in "$@" 21:12:47 + case $arg in 21:12:47 + pkg_list+='tox ' 21:12:47 + for arg in "$@" 21:12:47 + case $arg in 21:12:47 + pkg_list+='virtualenv ' 21:12:47 + for arg in "$@" 21:12:47 + case $arg in 21:12:47 + pkg_list+='urllib3~=1.26.15 ' 21:12:47 + [[ -f /tmp/.toxenv ]] 21:12:47 + [[ ! -f /tmp/.toxenv ]] 21:12:47 + [[ -n '' ]] 21:12:47 + python3 -m venv /tmp/venv-qeXT 21:12:51 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-qeXT' 21:12:51 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-qeXT 21:12:51 + echo /tmp/venv-qeXT 21:12:51 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 21:12:51 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 21:12:51 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 21:12:51 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 21:12:51 + local 'pip_opts=--upgrade --quiet' 21:12:51 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 21:12:51 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 21:12:51 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 21:12:51 + [[ -n '' ]] 21:12:51 + [[ -n '' ]] 21:12:51 + lf-venv-pip-install /tmp/venv-qeXT/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 21:12:51 + local venv_python=/tmp/venv-qeXT/bin/python3 21:12:51 + shift 21:12:51 + local upstream=https://pypi.org/simple 21:12:51 + /tmp/venv-qeXT/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 21:12:56 + return 0 21:12:56 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 21:12:56 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 21:12:56 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 21:12:56 + lf-venv-pip-install /tmp/venv-qeXT/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 21:12:56 + local venv_python=/tmp/venv-qeXT/bin/python3 21:12:56 + shift 21:12:56 + local upstream=https://pypi.org/simple 21:12:56 + /tmp/venv-qeXT/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 21:12:58 + return 0 21:12:58 + type python3 21:12:58 + true 21:12:58 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-qeXT/bin to PATH' 21:12:58 lf-activate-venv(): INFO: Adding /tmp/venv-qeXT/bin to PATH 21:12:58 + PATH=/tmp/venv-qeXT/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 21:12:58 + return 0 21:12:58 + python3 --version 21:12:58 Python 3.11.10 21:12:58 + python3 -m pip --version 21:12:58 pip 26.3 from /tmp/venv-qeXT/lib/python3.11/site-packages/pip (python 3.11) 21:12:58 + python3 -m pip freeze 21:12:59 cachetools==7.2.8 21:12:59 colorama==0.4.6 21:12:59 distlib==0.4.4 21:12:59 filelock==4.2.9 21:12:59 packaging==26.3 21:12:59 platformdirs==4.14.5 21:12:59 pluggy==1.7.0 21:12:59 pyproject-api==1.12.4 21:12:59 python-discovery==1.9.4 21:12:59 tomli_w==1.2.0 21:12:59 tox==4.67.10 21:12:59 typing_extensions==4.16.0 21:12:59 urllib3==1.26.20 21:12:59 virtualenv==21.15.5 21:12:59 [transportpce-tox-verify-transportpce-master] $ /bin/sh -xe /tmp/jenkins18256015058963844087.sh 21:12:59 [EnvInject] - Injecting environment variables from a build step. 21:12:59 [EnvInject] - Injecting as environment variables the properties content 21:12:59 PARALLEL=True 21:12:59 21:12:59 [EnvInject] - Variables injected successfully. 21:12:59 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins4451164710008677977.sh 21:12:59 ---> tox-run.sh 21:12:59 + 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 21:12:59 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 21:12:59 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 21:12:59 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 21:12:59 + cd /w/workspace/transportpce-tox-verify-transportpce-master/. 21:12:59 + source /home/jenkins/lf-env.sh 21:12:59 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 21:12:59 ++ mktemp -d /tmp/venv-XXXX 21:12:59 + lf_venv=/tmp/venv-Zak8 21:12:59 + local venv_file=/tmp/.os_lf_venv 21:12:59 + local python=python3 21:12:59 + local options 21:12:59 + local set_path=true 21:12:59 + local install_args= 21:12:59 ++ 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 21:12:59 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 21:12:59 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 21:12:59 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 21:12:59 + true 21:12:59 + case $1 in 21:12:59 + venv_file=/tmp/.toxenv 21:12:59 + shift 2 21:12:59 + true 21:12:59 + case $1 in 21:12:59 + shift 21:12:59 + break 21:12:59 + case $python in 21:12:59 + local pkg_list= 21:12:59 + [[ -d /opt/pyenv ]] 21:12:59 + echo 'Setup pyenv:' 21:12:59 Setup pyenv: 21:12:59 + export PYENV_ROOT=/opt/pyenv 21:12:59 + PYENV_ROOT=/opt/pyenv 21:12:59 + 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 21:12:59 + 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 21:12:59 + pyenv versions 21:12:59 system 21:12:59 3.8.20 21:12:59 3.9.20 21:12:59 3.10.15 21:12:59 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 21:12:59 + command -v pyenv 21:12:59 ++ pyenv init - --no-rehash 21:12:59 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 21:12:59 for i in ${!paths[@]}; do 21:12:59 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 21:12:59 fi; done; 21:12:59 echo "${paths[*]}"'\'')" 21:12:59 export PATH="/opt/pyenv/shims:${PATH}" 21:12:59 export PYENV_SHELL=bash 21:12:59 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 21:12:59 pyenv() { 21:12:59 local command 21:12:59 command="${1:-}" 21:12:59 if [ "$#" -gt 0 ]; then 21:12:59 shift 21:12:59 fi 21:12:59 21:12:59 case "$command" in 21:12:59 rehash|shell) 21:12:59 eval "$(pyenv "sh-$command" "$@")" 21:12:59 ;; 21:12:59 *) 21:12:59 command pyenv "$command" "$@" 21:12:59 ;; 21:12:59 esac 21:12:59 }' 21:12:59 +++ bash --norc -ec 'IFS=:; paths=($PATH); 21:12:59 for i in ${!paths[@]}; do 21:12:59 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 21:12:59 fi; done; 21:12:59 echo "${paths[*]}"' 21:12:59 ++ 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 21:12:59 ++ 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 21:12:59 ++ 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 21:12:59 ++ export PYENV_SHELL=bash 21:12:59 ++ PYENV_SHELL=bash 21:12:59 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 21:12:59 +++ complete -F _pyenv pyenv 21:12:59 ++ lf-pyver python3 21:12:59 ++ local py_version_xy=python3 21:12:59 ++ local py_version_xyz= 21:12:59 ++ pyenv versions 21:12:59 ++ local command 21:12:59 ++ command=versions 21:12:59 ++ '[' 1 -gt 0 ']' 21:12:59 ++ shift 21:12:59 ++ case "$command" in 21:12:59 ++ command pyenv versions 21:12:59 ++ awk '{ print $1 }' 21:12:59 ++ grep -E '^[0-9.]*[0-9]$' 21:12:59 ++ sed 's/^[ *]* //' 21:12:59 ++ [[ ! -s /tmp/.pyenv_versions ]] 21:12:59 +++ grep '^3' /tmp/.pyenv_versions 21:12:59 +++ sort -V 21:12:59 +++ tail -n 1 21:12:59 ++ py_version_xyz=3.11.10 21:12:59 ++ [[ -z 3.11.10 ]] 21:12:59 ++ echo 3.11.10 21:12:59 ++ return 0 21:12:59 + pyenv local 3.11.10 21:12:59 + local command 21:12:59 + command=local 21:12:59 + '[' 2 -gt 0 ']' 21:12:59 + shift 21:12:59 + case "$command" in 21:12:59 + command pyenv local 3.11.10 21:12:59 + for arg in "$@" 21:12:59 + case $arg in 21:12:59 + pkg_list+='tox ' 21:12:59 + for arg in "$@" 21:12:59 + case $arg in 21:12:59 + pkg_list+='virtualenv ' 21:12:59 + for arg in "$@" 21:12:59 + case $arg in 21:12:59 + pkg_list+='urllib3~=1.26.15 ' 21:12:59 + [[ -f /tmp/.toxenv ]] 21:12:59 ++ cat /tmp/.toxenv 21:12:59 + lf_venv=/tmp/venv-qeXT 21:12:59 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-qeXT from' file:/tmp/.toxenv 21:12:59 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-qeXT from file:/tmp/.toxenv 21:12:59 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 21:12:59 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 21:12:59 + local 'pip_opts=--upgrade --quiet' 21:12:59 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 21:12:59 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 21:12:59 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 21:12:59 + [[ -n '' ]] 21:12:59 + [[ -n '' ]] 21:12:59 + lf-venv-pip-install /tmp/venv-qeXT/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 21:12:59 + local venv_python=/tmp/venv-qeXT/bin/python3 21:12:59 + shift 21:12:59 + local upstream=https://pypi.org/simple 21:12:59 + /tmp/venv-qeXT/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 21:13:00 + return 0 21:13:00 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 21:13:00 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 21:13:00 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 21:13:00 + lf-venv-pip-install /tmp/venv-qeXT/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 21:13:00 + local venv_python=/tmp/venv-qeXT/bin/python3 21:13:00 + shift 21:13:00 + local upstream=https://pypi.org/simple 21:13:00 + /tmp/venv-qeXT/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 21:13:01 + return 0 21:13:01 + type python3 21:13:01 + true 21:13:01 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-qeXT/bin to PATH' 21:13:01 lf-activate-venv(): INFO: Adding /tmp/venv-qeXT/bin to PATH 21:13:01 + PATH=/tmp/venv-qeXT/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 21:13:01 + return 0 21:13:01 + [[ -d /opt/pyenv ]] 21:13:01 + echo '---> Setting up pyenv' 21:13:01 ---> Setting up pyenv 21:13:01 + export PYENV_ROOT=/opt/pyenv 21:13:01 + PYENV_ROOT=/opt/pyenv 21:13:01 + export PATH=/opt/pyenv/bin:/tmp/venv-qeXT/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 21:13:01 + PATH=/opt/pyenv/bin:/tmp/venv-qeXT/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 21:13:01 ++ pwd 21:13:01 + PYTHONPATH=/w/workspace/transportpce-tox-verify-transportpce-master 21:13:01 + export PYTHONPATH 21:13:01 + export TOX_TESTENV_PASSENV=PYTHONPATH 21:13:01 + TOX_TESTENV_PASSENV=PYTHONPATH 21:13:01 + tox --version 21:13:01 4.67.10 from /tmp/venv-qeXT/lib/python3.11/site-packages/tox/__init__.py 21:13:02 + PARALLEL=True 21:13:02 + TOX_OPTIONS_LIST= 21:13:02 + [[ -n '' ]] 21:13:02 + case ${PARALLEL,,} in 21:13:02 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 21:13:02 + tox --parallel auto --parallel-live 21:13:02 + tee -a /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tox.log 21:13:03 docs: install_deps> python -I -m pip install -r docs/requirements.txt 21:13:03 checkbashisms: freeze> python -m pip freeze --all 21:13:03 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 21:13:03 buildcontroller: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 21:13:04 checkbashisms: pip==26.3,setuptools==84.2.1 21:13:04 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 21:13:04 checkbashisms: commands[1] /w/workspace/transportpce-tox-verify-transportpce-master/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)' 21:13:04 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 21:13:05 checkbashisms: OK ✔ in 3.19 seconds 21:13:05 pre-commit: install_deps> python -I -m pip install pre-commit 21:13:08 pre-commit: freeze> python -m pip freeze --all 21:13:09 pre-commit: cfgv==3.5.0,distlib==0.4.4,filelock==4.2.9,identify==2.6.20,nodeenv==1.12.0,packaging==26.3,pip==26.3,platformdirs==4.14.5,pre_commit==4.7.0,python-discovery==1.9.4,PyYAML==6.0.3,setuptools==84.2.1,virtualenv==21.15.5 21:13:09 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 21:13:09 pre-commit: commands[1] /w/workspace/transportpce-tox-verify-transportpce-master/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)' 21:13:09 /usr/bin/cpan 21:13:09 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run --all-files --show-diff-on-failure 21:13:09 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 21:13:10 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 21:13:11 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 21:13:11 buildcontroller: freeze> python -m pip freeze --all 21:13:11 buildcontroller: bcrypt==5.0.0,certifi==2026.10.23,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.1.0,pip==26.3,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.2.0,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 21:13:11 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh 21:13:11 + update-java-alternatives -l 21:13:11 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 21:13:11 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 21:13:11 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 21:13:11 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 21:13:11 update-alternatives: error: no alternatives for jaotc 21:13:11 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 21:13:11 update-alternatives: error: no alternatives for rmic 21:13:11 + java -version 21:13:11 + sed -n s/.* version "\([0-9]*\).*/\1/p 21:13:12 [INFO] Initializing environment for https://github.com/hhatto/autopep8. 21:13:12 + JAVA_VER=21 21:13:12 + echo 21 21:13:12 21 21:13:12 + sed -n s/^javac \([0-9]*\).*/\1/p 21:13:12 + javac -version 21:13:12 + JAVAC_VER=21 21:13:12 + echo 21 21:13:12 + [ 21 -ge 21 ] 21:13:12 + [ 21 -ge 21 ] 21:13:12 + echo ok, java is 21 or newer 21:13:12 + wget -nv https://dlcdn.apache.org/maven/maven-3/3.9.16/binaries/apache-maven-3.9.16-bin.tar.gz -P /tmp 21:13:12 21 21:13:12 ok, java is 21 or newer 21:13:12 2026-11-04 21:13:12 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] 21:13:12 + sudo mkdir -p /opt 21:13:12 + sudo tar xf /tmp/apache-maven-3.9.16-bin.tar.gz -C /opt 21:13:12 + sudo ln -s /opt/apache-maven-3.9.16 /opt/maven 21:13:12 + sudo ln -s /opt/maven/bin/mvn /usr/bin/mvn 21:13:12 + mvn --version 21:13:12 Apache Maven 3.9.16 (2bdd9fddda4b155ebf8000e807eb73fd829a51d5) 21:13:12 Maven home: /opt/maven 21:13:12 Java version: 21.0.12.1, vendor: Ubuntu, runtime: /usr/lib/jvm/java-21-openjdk-amd64 21:13:12 Default locale: en, platform encoding: UTF-8 21:13:12 OS name: "linux", version: "5.15.0-202-generic", arch: "amd64", family: "unix" 21:13:12 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 21:13:12 NOTE: Picked up JDK_JAVA_OPTIONS: 21:13:12 --add-opens=java.base/java.io=ALL-UNNAMED 21:13:12 --add-opens=java.base/java.lang=ALL-UNNAMED 21:13:12 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 21:13:12 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 21:13:12 --add-opens=java.base/java.net=ALL-UNNAMED 21:13:12 --add-opens=java.base/java.nio=ALL-UNNAMED 21:13:12 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 21:13:12 --add-opens=java.base/java.nio.file=ALL-UNNAMED 21:13:12 --add-opens=java.base/java.util=ALL-UNNAMED 21:13:12 --add-opens=java.base/java.util.jar=ALL-UNNAMED 21:13:12 --add-opens=java.base/java.util.stream=ALL-UNNAMED 21:13:12 --add-opens=java.base/java.util.zip=ALL-UNNAMED 21:13:12 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 21:13:12 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 21:13:12 -Xlog:disable 21:13:13 [INFO] Initializing environment for https://github.com/koalaman/shellcheck-precommit. 21:13:14 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier. 21:13:14 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:prettier@4.0.0-alpha.8. 21:13:15 [INFO] Initializing environment for https://github.com/adrienverge/yamllint. 21:13:15 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 21:13:15 [INFO] Once installed this environment will be reused. 21:13:15 [INFO] This may take a few minutes... 21:13:21 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 21:13:21 [INFO] Once installed this environment will be reused. 21:13:21 [INFO] This may take a few minutes... 21:13:22 docs-linkcheck: freeze> python -m pip freeze --all 21:13:22 docs: freeze> python -m pip freeze --all 21:13:23 docs-linkcheck: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.10.23,charset-normalizer==3.5.2,deepmerge==4.0.0,docutils==0.22.4,idna==3.20,imagesize==2.0.1,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.58.6,lfdocs_conf==0.11.0,MarkupSafe==3.0.4,minijinja==2.24.0,mistune==3.4.0,packaging==26.3,picobox==4.0.0,pip==26.3,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.9.1,setuptools==84.2.1,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==9.2.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.2.1,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==2.0.0,sphinxcontrib-mermaid==2.1.1,sphinxcontrib-openapi==0.10.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,ub-needs-exchange==1.1.0,ub-project==1.2.0,urllib3==2.8.0 21:13:23 docs-linkcheck: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sphinx-build -q -b linkcheck -d /w/workspace/transportpce-tox-verify-transportpce-master/.tox/docs-linkcheck/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-transportpce-master/docs/_build/linkcheck 21:13:23 docs: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.10.23,charset-normalizer==3.5.2,deepmerge==4.0.0,docutils==0.22.4,idna==3.20,imagesize==2.0.1,Jinja2==3.1.6,jsonschema==4.26.0,jsonschema-specifications==2025.9.1,jsonschema_rs==0.58.6,lfdocs_conf==0.11.0,MarkupSafe==3.0.4,minijinja==2.24.0,mistune==3.4.0,packaging==26.3,picobox==4.0.0,pip==26.3,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.9.1,setuptools==84.2.1,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==9.2.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.2.1,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==2.0.0,sphinxcontrib-mermaid==2.1.1,sphinxcontrib-openapi==0.10.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,ub-needs-exchange==1.1.0,ub-project==1.2.0,urllib3==2.8.0 21:13:23 docs: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> sphinx-build -q -W --keep-going -b html -n -d /w/workspace/transportpce-tox-verify-transportpce-master/.tox/docs/tmp/doctrees ../docs/ /w/workspace/transportpce-tox-verify-transportpce-master/docs/_build/html 21:13:26 docs: OK ✔ in 24.27 seconds 21:13:26 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 21:13:27 [INFO] Installing environment for https://github.com/hhatto/autopep8. 21:13:27 [INFO] Once installed this environment will be reused. 21:13:27 [INFO] This may take a few minutes... 21:13:29 docs-linkcheck: OK ✔ in 25.98 seconds 21:13:29 pylint: freeze> python -m pip freeze --all 21:13:30 pylint: astroid==4.3.4,dill==0.4.1,isort==9.0.2,mccabe==0.7.0,mypy_extensions==1.2.0,pip==26.3,platformdirs==4.14.5,pylint==4.1.3,setuptools==84.2.1,tomlkit==0.15.2 21:13:30 pylint: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/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}$' '{}' + 21:13:31 [INFO] Installing environment for https://github.com/perltidy/perltidy. 21:13:31 [INFO] Once installed this environment will be reused. 21:13:31 [INFO] This may take a few minutes... 21:13:42 [INFO] Installing environment for https://github.com/pre-commit/mirrors-prettier. 21:13:42 [INFO] Once installed this environment will be reused. 21:13:42 [INFO] This may take a few minutes... 21:13:48 21:13:48 ------------------------------------ 21:13:48 Your code has been rated at 10.00/10 21:13:48 21:13:56 [INFO] Installing environment for https://github.com/adrienverge/yamllint. 21:13:56 [INFO] Once installed this environment will be reused. 21:13:56 [INFO] This may take a few minutes... 21:14:00 trim trailing whitespace.................................................Passed 21:14:00 fix end of files.........................................................Passed 21:14:01 check for added large files..............................................Passed 21:14:01 check for merge conflicts................................................Passed 21:14:01 check for case conflicts.................................................Passed 21:14:01 [ERROR] COMPILATION ERROR : 21:14:01 check json...............................................................[ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/olm/src/main/java/org/opendaylight/transportpce/olm/rpc/impl/GetPmImpl.java:[16,53] cannot find symbol 21:14:01 symbol: class ThreadPoolName 21:14:01 location: package org.opendaylight.transportpce.common.executor 21:14:01 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.16.0:compile (default-compile) on project transportpce-olm: Compilation failure 21:14:01 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/olm/src/main/java/org/opendaylight/transportpce/olm/rpc/impl/GetPmImpl.java:[16,53] cannot find symbol 21:14:01 [ERROR] symbol: class ThreadPoolName 21:14:01 [ERROR] location: package org.opendaylight.transportpce.common.executor 21:14:01 [ERROR] -> [Help 1] 21:14:01 [ERROR] 21:14:01 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 21:14:01 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 21:14:01 [ERROR] 21:14:01 [ERROR] For more information about the errors and possible solutions, please read the following articles: 21:14:01 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException 21:14:01 [ERROR] 21:14:01 [ERROR] After correcting the problems, you can resume the build with the command 21:14:01 [ERROR] mvn -rf :transportpce-olm 21:14:01 Passed 21:14:01 pylint: OK ✔ in 23.24 seconds 21:14:01 buildcontroller: exit 1 (50.24 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh pid=2704 21:14:01 mixed line ending........................................................Passed 21:14:02 Tabs remover.............................................................Passed 21:14:02 autopep8.................................................................buildcontroller: FAIL ✖ in 59.53 seconds 21:14:02 build_karaf_tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 21:14:02 build_karaf_tests200: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 21:14:03 build_karaf_tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 21:14:04 Passed 21:14:04 perltidy.................................................................Passed 21:14:05 ShellCheck v0.11.0.......................................................Passed 21:14:10 prettier.................................................................Passed 21:14:12 yamllint.................................................................Passed 21:14:12 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run gitlint-ci --hook-stage manual 21:14:12 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 21:14:12 [INFO] Once installed this environment will be reused. 21:14:12 [INFO] This may take a few minutes... 21:14:12 build_karaf_tests221: freeze> python -m pip freeze --all 21:14:13 build_karaf_tests200: freeze> python -m pip freeze --all 21:14:13 build_karaf_tests71: freeze> python -m pip freeze --all 21:14:13 build_karaf_tests221: bcrypt==5.0.0,certifi==2026.10.23,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.1.0,pip==26.3,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.2.0,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 21:14:13 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 21:14:13 build karaf in karaf221 with ./karaf221.env 21:14:13 build_karaf_tests200: bcrypt==5.0.0,certifi==2026.10.23,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.1.0,pip==26.3,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.2.0,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 21:14:13 build_karaf_tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 21:14:13 build karaf in karafoc200 with ./karafoc200.env 21:14:13 NOTE: Picked up JDK_JAVA_OPTIONS: 21:14:13 --add-opens=java.base/java.io=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.lang=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.net=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.nio=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.nio.file=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.util=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.util.jar=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.util.stream=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.util.zip=ALL-UNNAMED 21:14:13 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 21:14:13 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 21:14:13 -Xlog:disable 21:14:13 build_karaf_tests71: bcrypt==5.0.0,certifi==2026.10.23,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.1.0,pip==26.3,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.2.0,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 21:14:13 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 21:14:13 build karaf in karaf71 with ./karaf71.env 21:14:13 NOTE: Picked up JDK_JAVA_OPTIONS: 21:14:13 --add-opens=java.base/java.io=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.lang=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.net=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.nio=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.nio.file=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.util=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.util.jar=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.util.stream=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.util.zip=ALL-UNNAMED 21:14:13 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 21:14:13 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 21:14:13 -Xlog:disable 21:14:13 NOTE: Picked up JDK_JAVA_OPTIONS: 21:14:13 --add-opens=java.base/java.io=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.lang=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.lang.invoke=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.lang.reflect=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.net=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.nio=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.nio.charset=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.nio.file=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.util=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.util.jar=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.util.stream=ALL-UNNAMED 21:14:13 --add-opens=java.base/java.util.zip=ALL-UNNAMED 21:14:13 --add-opens java.base/sun.nio.ch=ALL-UNNAMED 21:14:13 --add-opens java.base/sun.nio.fs=ALL-UNNAMED 21:14:13 -Xlog:disable 21:14:30 [ERROR] Failed to execute goal on project transportpce-karaf: Could not resolve dependencies for project org.opendaylight.transportpce:transportpce-karaf:pom:14.0.0-SNAPSHOT 21:14:30 [ERROR] dependency: org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:14.0.0-SNAPSHOT (runtime) 21:14:30 [ERROR] Could not find artifact org.opendaylight.transportpce:odl-transportpce-tapi:xml:features:14.0.0-SNAPSHOT in opendaylight-snapshot (https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/) 21:14:30 [ERROR] -> [Help 1] 21:14:30 [ERROR] 21:14:30 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 21:14:30 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 21:14:30 [ERROR] 21:14:30 [ERROR] For more information about the errors and possible solutions, please read the following articles: 21:14:30 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException 21:14:31 /w/workspace/transportpce-tox-verify-transportpce-master/tests/build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 21:14:31 build_karaf_tests221: exit 127 (17.77 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=4255 21:14:31 build_karaf_tests221: FAIL ✖ in 29.22 seconds 21:14:31 buildlighty: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 21:14:32 gitlint..................................................................Passed 21:14:32 pre-commit: OK ✔ in 1 minute 27.18 seconds 21:14:32 sims: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 21:14:44 buildlighty: freeze> python -m pip freeze --all 21:14:44 sims: freeze> python -m pip freeze --all 21:14:44 buildlighty: bcrypt==5.0.0,certifi==2026.10.23,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.1.0,pip==26.3,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.2.0,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 21:14:44 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh 21:14:44 NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED 21:14:44 sims: bcrypt==5.0.0,certifi==2026.10.23,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.1.0,pip==26.3,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.2.0,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 21:14:44 sims: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./install_lightynode.sh 21:14:44 Using lighynode version 22.1.0.7 21:14:44 Installing lightynode device to /w/workspace/transportpce-tox-verify-transportpce-master/tests/lightynode/lightynode-openroadm-device directory 21:15:00 [ERROR] COMPILATION ERROR : 21:15:00 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/module/TransportPCEImpl.java:[24,60] package org.opendaylight.transportpce.common.executor.config does not exist 21:15:00 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/module/TransportPCEImpl.java:[25,60] package org.opendaylight.transportpce.common.executor.config does not exist 21:15:00 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/module/TransportPCEImpl.java:[110,19] cannot find symbol 21:15:00 symbol: class ExecutorPoolConfig 21:15:00 location: class io.lighty.controllers.tpce.module.TransportPCEImpl 21:15:00 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project tpce: Compilation failure: Compilation failure: 21:15:00 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/module/TransportPCEImpl.java:[24,60] package org.opendaylight.transportpce.common.executor.config does not exist 21:15:00 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/module/TransportPCEImpl.java:[25,60] package org.opendaylight.transportpce.common.executor.config does not exist 21:15:00 [ERROR] /w/workspace/transportpce-tox-verify-transportpce-master/lighty/src/main/java/io/lighty/controllers/tpce/module/TransportPCEImpl.java:[110,19] cannot find symbol 21:15:00 [ERROR] symbol: class ExecutorPoolConfig 21:15:00 [ERROR] location: class io.lighty.controllers.tpce.module.TransportPCEImpl 21:15:00 [ERROR] -> [Help 1] 21:15:00 [ERROR] 21:15:00 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 21:15:00 [ERROR] Re-run Maven using the -X switch to enable full debug logging. 21:15:00 [ERROR] 21:15:00 [ERROR] For more information about the errors and possible solutions, please read the following articles: 21:15:00 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException 21:15:00 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 21:15:00 sims: OK ✔ in 15.01 seconds 21:15:00 buildlighty: exit 9 (15.85 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh pid=4647 21:15:06 buildlighty: FAIL ✖ in 29.28 seconds 21:15:06 build_karaf_tests71: OK ✔ in 59.61 seconds 21:15:06 build_karaf_tests200: OK ✔ in 1 minute 4.08 seconds 21:15:06 testsPCE: install_deps> python -I -m pip install gnpy4tpce==2.4.7 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 21:16:10 testsPCE: freeze> python -m pip freeze --all 21:16:11 testsPCE: bcrypt==5.0.0,certifi==2026.10.23,cffi==2.1.1,charset-normalizer==3.5.2,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.68.0,gnpy4tpce==2.4.7,idna==3.20,iniconfig==2.3.1,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.4,matplotlib==3.11.2,netconf-client==3.6.0,networkx==2.8.8,numpy==1.26.4,packaging==26.3,pandas==1.5.3,paramiko==5.1.0,pbr==5.11.1,pillow==13.0.0,pip==26.3,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pyparsing==3.3.3,pytest==9.2.0,python-dateutil==4.0.0,pytz==2026.6,requests==2.34.2,scipy==1.17.1,setuptools==50.3.2,six==1.17.0,tzdata==2026.6,urllib3==2.8.0,Werkzeug==2.0.3,xlrd==1.2.0 21:16:11 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce 21:16:11 pytest -q transportpce_tests/pce/test01_pce.py 21:18:11 EEEEEEEEEEEEEEEEEEEE [100%] 21:18:14 ==================================== ERRORS ==================================== 21:18:14 _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ 21:18:14 21:18:14 cls = 21:18:14 21:18:14 @classmethod 21:18:14 def setUpClass(cls): 21:18:14 # pylint: disable=bare-except 21:18:14 sample_files_parsed = False 21:18:14 time.sleep(20) 21:18:14 try: 21:18:14 TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 21:18:14 "..", "..", "sample_configs", "honeynode-topo.json") 21:18:14 with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: 21:18:14 cls.simple_topo_bi_dir_data = topo_bi_dir.read() 21:18:14 21:18:14 TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 21:18:14 "..", "..", "sample_configs", "NW-simple-topology.json") 21:18:14 21:18:14 with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: 21:18:14 cls.simple_topo_uni_dir_data = topo_uni_dir.read() 21:18:14 21:18:14 TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 21:18:14 "..", "..", "sample_configs", "NW-for-test-5-4.json") 21:18:14 with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: 21:18:14 cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() 21:18:14 PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 21:18:14 "..", "..", "sample_configs", "pce_portmapping_221.json") 21:18:14 with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: 21:18:14 cls.port_mapping_data = port_mapping.read() 21:18:14 sample_files_parsed = True 21:18:14 except PermissionError as err: 21:18:14 print("Permission Error when trying to read sample files\n", err) 21:18:14 sys.exit(2) 21:18:14 except FileNotFoundError as err: 21:18:14 print("File Not found Error when trying to read sample files\n", err) 21:18:14 sys.exit(2) 21:18:14 except: 21:18:14 print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) 21:18:14 sys.exit(2) 21:18:14 finally: 21:18:14 if sample_files_parsed: 21:18:14 print("sample files content loaded") 21:18:14 21:18:14 > cls.processes = test_utils.start_tpce() 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 21:18:14 transportpce_tests/pce/test01_pce.py:93: 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 21:18:14 def start_tpce(): 21:18:14 if 'NO_ODL_STARTUP' in os.environ: 21:18:14 print('No OpenDaylight instance to start!') 21:18:14 return [] 21:18:14 print('starting OpenDaylight...') 21:18:14 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 21:18:14 process = start_lighty() 21:18:14 else: 21:18:14 process = start_karaf() 21:18:14 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 21:18:14 print('OpenDaylight started !') 21:18:14 else: 21:18:14 print('OpenDaylight failed to start !') 21:18:14 shutdown_process(process) 21:18:14 for pid in process_list: 21:18:14 shutdown_process(pid) 21:18:14 > sys.exit(1) 21:18:14 E SystemExit: 1 21:18:14 21:18:14 transportpce_tests/common/test_utils.py:234: SystemExit 21:18:14 ---------------------------- Captured stdout setup ----------------------------- 21:18:14 sample files content loaded 21:18:14 starting OpenDaylight... 21:18:14 starting KARAF (karaf) TransportPCE build... 21:18:14 Pattern not found after 100 seconds! OpenDaylight failed to start ! 21:18:14 ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ 21:18:14 21:18:14 cls = 21:18:14 func = . at 0x7f4dd14f6520> 21:18:14 when = 'setup' 21:18:14 reraise = (, ) 21:18:14 21:18:14 @classmethod 21:18:14 def from_call( 21:18:14 cls, 21:18:14 func: Callable[[], TResult], 21:18:14 when: Literal["collect", "setup", "call", "teardown"], 21:18:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:14 ) -> CallInfo[TResult]: 21:18:14 """Call func, wrapping the result in a CallInfo. 21:18:14 21:18:14 :param func: 21:18:14 The function to call. Called without arguments. 21:18:14 :type func: Callable[[], _pytest.runner.TResult] 21:18:14 :param when: 21:18:14 The phase in which the function is called. 21:18:14 :param reraise: 21:18:14 Exception or exceptions that shall propagate if raised by the 21:18:14 function, instead of being wrapped in the CallInfo. 21:18:14 """ 21:18:14 excinfo = None 21:18:14 instant = timing.Instant() 21:18:14 try: 21:18:14 > result: TResult | None = func() 21:18:14 ^^^^^^ 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:14 lambda: runtest_hook(item=item, **kwds), 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:18:14 return self._hookexec( 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:18:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:18:14 yield 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:18:14 return (yield) 21:18:14 ^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:14 item.session._setupstate.setup(item) 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:14 col.setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:18:14 super().setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:18:14 self._request._fillfixtures() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:18:14 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:18:14 fixturedef = self._get_active_fixturedef(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:18:14 fixturedef.execute(request=subrequest) 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 21:18:14 self = 21:18:14 request = > 21:18:14 21:18:14 def execute(self, request: SubRequest) -> FixtureValue: 21:18:14 """Return the value of this fixture, executing it if not cached.""" 21:18:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:14 # This needs to be done before checking if we have a cached value, since 21:18:14 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:14 # parametrization, they finalize themselves and fixtures depending on it 21:18:14 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:14 # See #4871 21:18:14 requested_fixtures_that_should_finalize_us = [] 21:18:14 for argname in self.argnames: 21:18:14 fixturedef = request._get_active_fixturedef(argname) 21:18:14 # Saves requested fixtures in a list so we later can add our finalizer 21:18:14 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:14 # down first. This is generally handled by SetupState, but still currently 21:18:14 # needed when this fixture is not parametrized but depends on a parametrized 21:18:14 # fixture. 21:18:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:14 21:18:14 # Check for (and return) cached value/exception. 21:18:14 if self.cached_result is not None: 21:18:14 request_cache_key = self.cache_key(request) 21:18:14 cache_key = self.cached_result[1] 21:18:14 try: 21:18:14 # Attempt to make a normal == check: this might fail for objects 21:18:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:14 cache_hit = bool(request_cache_key == cache_key) 21:18:14 except (ValueError, RuntimeError): 21:18:14 # If the comparison raises, use 'is' as fallback. 21:18:14 cache_hit = request_cache_key is cache_key 21:18:14 21:18:14 if cache_hit: 21:18:14 if self.cached_result[2] is not None: 21:18:14 exc, exc_tb = self.cached_result[2] 21:18:14 raise exc.with_traceback(exc_tb) 21:18:14 else: 21:18:14 return self.cached_result[0] 21:18:14 # We have a previous but differently parametrized fixture instance 21:18:14 # so we need to tear it down before creating a new one. 21:18:14 self.finish(request) 21:18:14 assert self.cached_result is None 21:18:14 21:18:14 # Add finalizer to requested fixtures we saved previously. 21:18:14 # We make sure to do this after checking for cached value to avoid 21:18:14 # adding our finalizer multiple times. (#12135) 21:18:14 finalizer = functools.partial(self.finish, request=request) 21:18:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:14 parent_fixture.addfinalizer(finalizer) 21:18:14 21:18:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:14 # which is executed last. 21:18:14 > assert not self._finalizers 21:18:14 ^^^^^^^^^^^^^^^^^^^^ 21:18:14 E AssertionError 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:18:14 ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ 21:18:14 21:18:14 cls = 21:18:14 func = . at 0x7f4dd14a2840> 21:18:14 when = 'setup' 21:18:14 reraise = (, ) 21:18:14 21:18:14 @classmethod 21:18:14 def from_call( 21:18:14 cls, 21:18:14 func: Callable[[], TResult], 21:18:14 when: Literal["collect", "setup", "call", "teardown"], 21:18:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:14 ) -> CallInfo[TResult]: 21:18:14 """Call func, wrapping the result in a CallInfo. 21:18:14 21:18:14 :param func: 21:18:14 The function to call. Called without arguments. 21:18:14 :type func: Callable[[], _pytest.runner.TResult] 21:18:14 :param when: 21:18:14 The phase in which the function is called. 21:18:14 :param reraise: 21:18:14 Exception or exceptions that shall propagate if raised by the 21:18:14 function, instead of being wrapped in the CallInfo. 21:18:14 """ 21:18:14 excinfo = None 21:18:14 instant = timing.Instant() 21:18:14 try: 21:18:14 > result: TResult | None = func() 21:18:14 ^^^^^^ 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:14 lambda: runtest_hook(item=item, **kwds), 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:18:14 return self._hookexec( 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:18:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:18:14 yield 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:18:14 return (yield) 21:18:14 ^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:14 item.session._setupstate.setup(item) 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:14 col.setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:18:14 super().setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:18:14 self._request._fillfixtures() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:18:14 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:18:14 fixturedef = self._get_active_fixturedef(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:18:14 fixturedef.execute(request=subrequest) 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 21:18:14 self = 21:18:14 request = > 21:18:14 21:18:14 def execute(self, request: SubRequest) -> FixtureValue: 21:18:14 """Return the value of this fixture, executing it if not cached.""" 21:18:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:14 # This needs to be done before checking if we have a cached value, since 21:18:14 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:14 # parametrization, they finalize themselves and fixtures depending on it 21:18:14 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:14 # See #4871 21:18:14 requested_fixtures_that_should_finalize_us = [] 21:18:14 for argname in self.argnames: 21:18:14 fixturedef = request._get_active_fixturedef(argname) 21:18:14 # Saves requested fixtures in a list so we later can add our finalizer 21:18:14 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:14 # down first. This is generally handled by SetupState, but still currently 21:18:14 # needed when this fixture is not parametrized but depends on a parametrized 21:18:14 # fixture. 21:18:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:14 21:18:14 # Check for (and return) cached value/exception. 21:18:14 if self.cached_result is not None: 21:18:14 request_cache_key = self.cache_key(request) 21:18:14 cache_key = self.cached_result[1] 21:18:14 try: 21:18:14 # Attempt to make a normal == check: this might fail for objects 21:18:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:14 cache_hit = bool(request_cache_key == cache_key) 21:18:14 except (ValueError, RuntimeError): 21:18:14 # If the comparison raises, use 'is' as fallback. 21:18:14 cache_hit = request_cache_key is cache_key 21:18:14 21:18:14 if cache_hit: 21:18:14 if self.cached_result[2] is not None: 21:18:14 exc, exc_tb = self.cached_result[2] 21:18:14 raise exc.with_traceback(exc_tb) 21:18:14 else: 21:18:14 return self.cached_result[0] 21:18:14 # We have a previous but differently parametrized fixture instance 21:18:14 # so we need to tear it down before creating a new one. 21:18:14 self.finish(request) 21:18:14 assert self.cached_result is None 21:18:14 21:18:14 # Add finalizer to requested fixtures we saved previously. 21:18:14 # We make sure to do this after checking for cached value to avoid 21:18:14 # adding our finalizer multiple times. (#12135) 21:18:14 finalizer = functools.partial(self.finish, request=request) 21:18:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:14 parent_fixture.addfinalizer(finalizer) 21:18:14 21:18:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:14 # which is executed last. 21:18:14 > assert not self._finalizers 21:18:14 ^^^^^^^^^^^^^^^^^^^^ 21:18:14 E AssertionError 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:18:14 ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ 21:18:14 21:18:14 cls = 21:18:14 func = . at 0x7f4dd14a2ac0> 21:18:14 when = 'setup' 21:18:14 reraise = (, ) 21:18:14 21:18:14 @classmethod 21:18:14 def from_call( 21:18:14 cls, 21:18:14 func: Callable[[], TResult], 21:18:14 when: Literal["collect", "setup", "call", "teardown"], 21:18:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:14 ) -> CallInfo[TResult]: 21:18:14 """Call func, wrapping the result in a CallInfo. 21:18:14 21:18:14 :param func: 21:18:14 The function to call. Called without arguments. 21:18:14 :type func: Callable[[], _pytest.runner.TResult] 21:18:14 :param when: 21:18:14 The phase in which the function is called. 21:18:14 :param reraise: 21:18:14 Exception or exceptions that shall propagate if raised by the 21:18:14 function, instead of being wrapped in the CallInfo. 21:18:14 """ 21:18:14 excinfo = None 21:18:14 instant = timing.Instant() 21:18:14 try: 21:18:14 > result: TResult | None = func() 21:18:14 ^^^^^^ 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:14 lambda: runtest_hook(item=item, **kwds), 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:18:14 return self._hookexec( 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:18:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:18:14 yield 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:18:14 return (yield) 21:18:14 ^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:14 item.session._setupstate.setup(item) 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:14 col.setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:18:14 super().setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:18:14 self._request._fillfixtures() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:18:14 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:18:14 fixturedef = self._get_active_fixturedef(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:18:14 fixturedef.execute(request=subrequest) 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 21:18:14 self = 21:18:14 request = > 21:18:14 21:18:14 def execute(self, request: SubRequest) -> FixtureValue: 21:18:14 """Return the value of this fixture, executing it if not cached.""" 21:18:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:14 # This needs to be done before checking if we have a cached value, since 21:18:14 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:14 # parametrization, they finalize themselves and fixtures depending on it 21:18:14 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:14 # See #4871 21:18:14 requested_fixtures_that_should_finalize_us = [] 21:18:14 for argname in self.argnames: 21:18:14 fixturedef = request._get_active_fixturedef(argname) 21:18:14 # Saves requested fixtures in a list so we later can add our finalizer 21:18:14 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:14 # down first. This is generally handled by SetupState, but still currently 21:18:14 # needed when this fixture is not parametrized but depends on a parametrized 21:18:14 # fixture. 21:18:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:14 21:18:14 # Check for (and return) cached value/exception. 21:18:14 if self.cached_result is not None: 21:18:14 request_cache_key = self.cache_key(request) 21:18:14 cache_key = self.cached_result[1] 21:18:14 try: 21:18:14 # Attempt to make a normal == check: this might fail for objects 21:18:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:14 cache_hit = bool(request_cache_key == cache_key) 21:18:14 except (ValueError, RuntimeError): 21:18:14 # If the comparison raises, use 'is' as fallback. 21:18:14 cache_hit = request_cache_key is cache_key 21:18:14 21:18:14 if cache_hit: 21:18:14 if self.cached_result[2] is not None: 21:18:14 exc, exc_tb = self.cached_result[2] 21:18:14 raise exc.with_traceback(exc_tb) 21:18:14 else: 21:18:14 return self.cached_result[0] 21:18:14 # We have a previous but differently parametrized fixture instance 21:18:14 # so we need to tear it down before creating a new one. 21:18:14 self.finish(request) 21:18:14 assert self.cached_result is None 21:18:14 21:18:14 # Add finalizer to requested fixtures we saved previously. 21:18:14 # We make sure to do this after checking for cached value to avoid 21:18:14 # adding our finalizer multiple times. (#12135) 21:18:14 finalizer = functools.partial(self.finish, request=request) 21:18:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:14 parent_fixture.addfinalizer(finalizer) 21:18:14 21:18:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:14 # which is executed last. 21:18:14 > assert not self._finalizers 21:18:14 ^^^^^^^^^^^^^^^^^^^^ 21:18:14 E AssertionError 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:18:14 ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ 21:18:14 21:18:14 cls = 21:18:14 func = . at 0x7f4dd35102c0> 21:18:14 when = 'setup' 21:18:14 reraise = (, ) 21:18:14 21:18:14 @classmethod 21:18:14 def from_call( 21:18:14 cls, 21:18:14 func: Callable[[], TResult], 21:18:14 when: Literal["collect", "setup", "call", "teardown"], 21:18:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:14 ) -> CallInfo[TResult]: 21:18:14 """Call func, wrapping the result in a CallInfo. 21:18:14 21:18:14 :param func: 21:18:14 The function to call. Called without arguments. 21:18:14 :type func: Callable[[], _pytest.runner.TResult] 21:18:14 :param when: 21:18:14 The phase in which the function is called. 21:18:14 :param reraise: 21:18:14 Exception or exceptions that shall propagate if raised by the 21:18:14 function, instead of being wrapped in the CallInfo. 21:18:14 """ 21:18:14 excinfo = None 21:18:14 instant = timing.Instant() 21:18:14 try: 21:18:14 > result: TResult | None = func() 21:18:14 ^^^^^^ 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:14 lambda: runtest_hook(item=item, **kwds), 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:18:14 return self._hookexec( 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:18:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:18:14 yield 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:18:14 return (yield) 21:18:14 ^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:14 item.session._setupstate.setup(item) 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:14 col.setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:18:14 super().setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:18:14 self._request._fillfixtures() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:18:14 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:18:14 fixturedef = self._get_active_fixturedef(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:18:14 fixturedef.execute(request=subrequest) 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 21:18:14 self = 21:18:14 request = > 21:18:14 21:18:14 def execute(self, request: SubRequest) -> FixtureValue: 21:18:14 """Return the value of this fixture, executing it if not cached.""" 21:18:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:14 # This needs to be done before checking if we have a cached value, since 21:18:14 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:14 # parametrization, they finalize themselves and fixtures depending on it 21:18:14 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:14 # See #4871 21:18:14 requested_fixtures_that_should_finalize_us = [] 21:18:14 for argname in self.argnames: 21:18:14 fixturedef = request._get_active_fixturedef(argname) 21:18:14 # Saves requested fixtures in a list so we later can add our finalizer 21:18:14 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:14 # down first. This is generally handled by SetupState, but still currently 21:18:14 # needed when this fixture is not parametrized but depends on a parametrized 21:18:14 # fixture. 21:18:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:14 21:18:14 # Check for (and return) cached value/exception. 21:18:14 if self.cached_result is not None: 21:18:14 request_cache_key = self.cache_key(request) 21:18:14 cache_key = self.cached_result[1] 21:18:14 try: 21:18:14 # Attempt to make a normal == check: this might fail for objects 21:18:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:14 cache_hit = bool(request_cache_key == cache_key) 21:18:14 except (ValueError, RuntimeError): 21:18:14 # If the comparison raises, use 'is' as fallback. 21:18:14 cache_hit = request_cache_key is cache_key 21:18:14 21:18:14 if cache_hit: 21:18:14 if self.cached_result[2] is not None: 21:18:14 exc, exc_tb = self.cached_result[2] 21:18:14 raise exc.with_traceback(exc_tb) 21:18:14 else: 21:18:14 return self.cached_result[0] 21:18:14 # We have a previous but differently parametrized fixture instance 21:18:14 # so we need to tear it down before creating a new one. 21:18:14 self.finish(request) 21:18:14 assert self.cached_result is None 21:18:14 21:18:14 # Add finalizer to requested fixtures we saved previously. 21:18:14 # We make sure to do this after checking for cached value to avoid 21:18:14 # adding our finalizer multiple times. (#12135) 21:18:14 finalizer = functools.partial(self.finish, request=request) 21:18:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:14 parent_fixture.addfinalizer(finalizer) 21:18:14 21:18:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:14 # which is executed last. 21:18:14 > assert not self._finalizers 21:18:14 ^^^^^^^^^^^^^^^^^^^^ 21:18:14 E AssertionError 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:18:14 ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ 21:18:14 21:18:14 cls = 21:18:14 func = . at 0x7f4dd14f79c0> 21:18:14 when = 'setup' 21:18:14 reraise = (, ) 21:18:14 21:18:14 @classmethod 21:18:14 def from_call( 21:18:14 cls, 21:18:14 func: Callable[[], TResult], 21:18:14 when: Literal["collect", "setup", "call", "teardown"], 21:18:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:14 ) -> CallInfo[TResult]: 21:18:14 """Call func, wrapping the result in a CallInfo. 21:18:14 21:18:14 :param func: 21:18:14 The function to call. Called without arguments. 21:18:14 :type func: Callable[[], _pytest.runner.TResult] 21:18:14 :param when: 21:18:14 The phase in which the function is called. 21:18:14 :param reraise: 21:18:14 Exception or exceptions that shall propagate if raised by the 21:18:14 function, instead of being wrapped in the CallInfo. 21:18:14 """ 21:18:14 excinfo = None 21:18:14 instant = timing.Instant() 21:18:14 try: 21:18:14 > result: TResult | None = func() 21:18:14 ^^^^^^ 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:14 lambda: runtest_hook(item=item, **kwds), 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:18:14 return self._hookexec( 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:18:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:18:14 yield 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:18:14 return (yield) 21:18:14 ^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:14 item.session._setupstate.setup(item) 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:14 col.setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:18:14 super().setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:18:14 self._request._fillfixtures() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:18:14 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:18:14 fixturedef = self._get_active_fixturedef(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:18:14 fixturedef.execute(request=subrequest) 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 21:18:14 self = 21:18:14 request = > 21:18:14 21:18:14 def execute(self, request: SubRequest) -> FixtureValue: 21:18:14 """Return the value of this fixture, executing it if not cached.""" 21:18:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:14 # This needs to be done before checking if we have a cached value, since 21:18:14 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:14 # parametrization, they finalize themselves and fixtures depending on it 21:18:14 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:14 # See #4871 21:18:14 requested_fixtures_that_should_finalize_us = [] 21:18:14 for argname in self.argnames: 21:18:14 fixturedef = request._get_active_fixturedef(argname) 21:18:14 # Saves requested fixtures in a list so we later can add our finalizer 21:18:14 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:14 # down first. This is generally handled by SetupState, but still currently 21:18:14 # needed when this fixture is not parametrized but depends on a parametrized 21:18:14 # fixture. 21:18:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:14 21:18:14 # Check for (and return) cached value/exception. 21:18:14 if self.cached_result is not None: 21:18:14 request_cache_key = self.cache_key(request) 21:18:14 cache_key = self.cached_result[1] 21:18:14 try: 21:18:14 # Attempt to make a normal == check: this might fail for objects 21:18:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:14 cache_hit = bool(request_cache_key == cache_key) 21:18:14 except (ValueError, RuntimeError): 21:18:14 # If the comparison raises, use 'is' as fallback. 21:18:14 cache_hit = request_cache_key is cache_key 21:18:14 21:18:14 if cache_hit: 21:18:14 if self.cached_result[2] is not None: 21:18:14 exc, exc_tb = self.cached_result[2] 21:18:14 raise exc.with_traceback(exc_tb) 21:18:14 else: 21:18:14 return self.cached_result[0] 21:18:14 # We have a previous but differently parametrized fixture instance 21:18:14 # so we need to tear it down before creating a new one. 21:18:14 self.finish(request) 21:18:14 assert self.cached_result is None 21:18:14 21:18:14 # Add finalizer to requested fixtures we saved previously. 21:18:14 # We make sure to do this after checking for cached value to avoid 21:18:14 # adding our finalizer multiple times. (#12135) 21:18:14 finalizer = functools.partial(self.finish, request=request) 21:18:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:14 parent_fixture.addfinalizer(finalizer) 21:18:14 21:18:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:14 # which is executed last. 21:18:14 > assert not self._finalizers 21:18:14 ^^^^^^^^^^^^^^^^^^^^ 21:18:14 E AssertionError 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:18:14 ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ 21:18:14 21:18:14 cls = 21:18:14 func = . at 0x7f4dd14a2ac0> 21:18:14 when = 'setup' 21:18:14 reraise = (, ) 21:18:14 21:18:14 @classmethod 21:18:14 def from_call( 21:18:14 cls, 21:18:14 func: Callable[[], TResult], 21:18:14 when: Literal["collect", "setup", "call", "teardown"], 21:18:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:14 ) -> CallInfo[TResult]: 21:18:14 """Call func, wrapping the result in a CallInfo. 21:18:14 21:18:14 :param func: 21:18:14 The function to call. Called without arguments. 21:18:14 :type func: Callable[[], _pytest.runner.TResult] 21:18:14 :param when: 21:18:14 The phase in which the function is called. 21:18:14 :param reraise: 21:18:14 Exception or exceptions that shall propagate if raised by the 21:18:14 function, instead of being wrapped in the CallInfo. 21:18:14 """ 21:18:14 excinfo = None 21:18:14 instant = timing.Instant() 21:18:14 try: 21:18:14 > result: TResult | None = func() 21:18:14 ^^^^^^ 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:14 lambda: runtest_hook(item=item, **kwds), 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:18:14 return self._hookexec( 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:18:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:18:14 yield 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:18:14 return (yield) 21:18:14 ^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:14 item.session._setupstate.setup(item) 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:14 col.setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:18:14 super().setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:18:14 self._request._fillfixtures() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:18:14 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:18:14 fixturedef = self._get_active_fixturedef(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:18:14 fixturedef.execute(request=subrequest) 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 21:18:14 self = 21:18:14 request = > 21:18:14 21:18:14 def execute(self, request: SubRequest) -> FixtureValue: 21:18:14 """Return the value of this fixture, executing it if not cached.""" 21:18:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:14 # This needs to be done before checking if we have a cached value, since 21:18:14 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:14 # parametrization, they finalize themselves and fixtures depending on it 21:18:14 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:14 # See #4871 21:18:14 requested_fixtures_that_should_finalize_us = [] 21:18:14 for argname in self.argnames: 21:18:14 fixturedef = request._get_active_fixturedef(argname) 21:18:14 # Saves requested fixtures in a list so we later can add our finalizer 21:18:14 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:14 # down first. This is generally handled by SetupState, but still currently 21:18:14 # needed when this fixture is not parametrized but depends on a parametrized 21:18:14 # fixture. 21:18:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:14 21:18:14 # Check for (and return) cached value/exception. 21:18:14 if self.cached_result is not None: 21:18:14 request_cache_key = self.cache_key(request) 21:18:14 cache_key = self.cached_result[1] 21:18:14 try: 21:18:14 # Attempt to make a normal == check: this might fail for objects 21:18:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:14 cache_hit = bool(request_cache_key == cache_key) 21:18:14 except (ValueError, RuntimeError): 21:18:14 # If the comparison raises, use 'is' as fallback. 21:18:14 cache_hit = request_cache_key is cache_key 21:18:14 21:18:14 if cache_hit: 21:18:14 if self.cached_result[2] is not None: 21:18:14 exc, exc_tb = self.cached_result[2] 21:18:14 raise exc.with_traceback(exc_tb) 21:18:14 else: 21:18:14 return self.cached_result[0] 21:18:14 # We have a previous but differently parametrized fixture instance 21:18:14 # so we need to tear it down before creating a new one. 21:18:14 self.finish(request) 21:18:14 assert self.cached_result is None 21:18:14 21:18:14 # Add finalizer to requested fixtures we saved previously. 21:18:14 # We make sure to do this after checking for cached value to avoid 21:18:14 # adding our finalizer multiple times. (#12135) 21:18:14 finalizer = functools.partial(self.finish, request=request) 21:18:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:14 parent_fixture.addfinalizer(finalizer) 21:18:14 21:18:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:14 # which is executed last. 21:18:14 > assert not self._finalizers 21:18:14 ^^^^^^^^^^^^^^^^^^^^ 21:18:14 E AssertionError 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:18:14 ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ 21:18:14 21:18:14 cls = 21:18:14 func = . at 0x7f4dd14f5760> 21:18:14 when = 'setup' 21:18:14 reraise = (, ) 21:18:14 21:18:14 @classmethod 21:18:14 def from_call( 21:18:14 cls, 21:18:14 func: Callable[[], TResult], 21:18:14 when: Literal["collect", "setup", "call", "teardown"], 21:18:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:14 ) -> CallInfo[TResult]: 21:18:14 """Call func, wrapping the result in a CallInfo. 21:18:14 21:18:14 :param func: 21:18:14 The function to call. Called without arguments. 21:18:14 :type func: Callable[[], _pytest.runner.TResult] 21:18:14 :param when: 21:18:14 The phase in which the function is called. 21:18:14 :param reraise: 21:18:14 Exception or exceptions that shall propagate if raised by the 21:18:14 function, instead of being wrapped in the CallInfo. 21:18:14 """ 21:18:14 excinfo = None 21:18:14 instant = timing.Instant() 21:18:14 try: 21:18:14 > result: TResult | None = func() 21:18:14 ^^^^^^ 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:14 lambda: runtest_hook(item=item, **kwds), 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:18:14 return self._hookexec( 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:18:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:18:14 yield 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:18:14 return (yield) 21:18:14 ^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:14 item.session._setupstate.setup(item) 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:14 col.setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:18:14 super().setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:18:14 self._request._fillfixtures() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:18:14 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:18:14 fixturedef = self._get_active_fixturedef(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:18:14 fixturedef.execute(request=subrequest) 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 21:18:14 self = 21:18:14 request = > 21:18:14 21:18:14 def execute(self, request: SubRequest) -> FixtureValue: 21:18:14 """Return the value of this fixture, executing it if not cached.""" 21:18:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:14 # This needs to be done before checking if we have a cached value, since 21:18:14 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:14 # parametrization, they finalize themselves and fixtures depending on it 21:18:14 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:14 # See #4871 21:18:14 requested_fixtures_that_should_finalize_us = [] 21:18:14 for argname in self.argnames: 21:18:14 fixturedef = request._get_active_fixturedef(argname) 21:18:14 # Saves requested fixtures in a list so we later can add our finalizer 21:18:14 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:14 # down first. This is generally handled by SetupState, but still currently 21:18:14 # needed when this fixture is not parametrized but depends on a parametrized 21:18:14 # fixture. 21:18:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:14 21:18:14 # Check for (and return) cached value/exception. 21:18:14 if self.cached_result is not None: 21:18:14 request_cache_key = self.cache_key(request) 21:18:14 cache_key = self.cached_result[1] 21:18:14 try: 21:18:14 # Attempt to make a normal == check: this might fail for objects 21:18:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:14 cache_hit = bool(request_cache_key == cache_key) 21:18:14 except (ValueError, RuntimeError): 21:18:14 # If the comparison raises, use 'is' as fallback. 21:18:14 cache_hit = request_cache_key is cache_key 21:18:14 21:18:14 if cache_hit: 21:18:14 if self.cached_result[2] is not None: 21:18:14 exc, exc_tb = self.cached_result[2] 21:18:14 raise exc.with_traceback(exc_tb) 21:18:14 else: 21:18:14 return self.cached_result[0] 21:18:14 # We have a previous but differently parametrized fixture instance 21:18:14 # so we need to tear it down before creating a new one. 21:18:14 self.finish(request) 21:18:14 assert self.cached_result is None 21:18:14 21:18:14 # Add finalizer to requested fixtures we saved previously. 21:18:14 # We make sure to do this after checking for cached value to avoid 21:18:14 # adding our finalizer multiple times. (#12135) 21:18:14 finalizer = functools.partial(self.finish, request=request) 21:18:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:14 parent_fixture.addfinalizer(finalizer) 21:18:14 21:18:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:14 # which is executed last. 21:18:14 > assert not self._finalizers 21:18:14 ^^^^^^^^^^^^^^^^^^^^ 21:18:14 E AssertionError 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:18:14 ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ 21:18:14 21:18:14 cls = 21:18:14 func = . at 0x7f4dd14f7ce0> 21:18:14 when = 'setup' 21:18:14 reraise = (, ) 21:18:14 21:18:14 @classmethod 21:18:14 def from_call( 21:18:14 cls, 21:18:14 func: Callable[[], TResult], 21:18:14 when: Literal["collect", "setup", "call", "teardown"], 21:18:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:14 ) -> CallInfo[TResult]: 21:18:14 """Call func, wrapping the result in a CallInfo. 21:18:14 21:18:14 :param func: 21:18:14 The function to call. Called without arguments. 21:18:14 :type func: Callable[[], _pytest.runner.TResult] 21:18:14 :param when: 21:18:14 The phase in which the function is called. 21:18:14 :param reraise: 21:18:14 Exception or exceptions that shall propagate if raised by the 21:18:14 function, instead of being wrapped in the CallInfo. 21:18:14 """ 21:18:14 excinfo = None 21:18:14 instant = timing.Instant() 21:18:14 try: 21:18:14 > result: TResult | None = func() 21:18:14 ^^^^^^ 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:14 lambda: runtest_hook(item=item, **kwds), 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:18:14 return self._hookexec( 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:18:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:18:14 yield 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:18:14 return (yield) 21:18:14 ^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:14 item.session._setupstate.setup(item) 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:14 col.setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:18:14 super().setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:18:14 self._request._fillfixtures() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:18:14 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:18:14 fixturedef = self._get_active_fixturedef(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:18:14 fixturedef.execute(request=subrequest) 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 21:18:14 self = 21:18:14 request = > 21:18:14 21:18:14 def execute(self, request: SubRequest) -> FixtureValue: 21:18:14 """Return the value of this fixture, executing it if not cached.""" 21:18:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:14 # This needs to be done before checking if we have a cached value, since 21:18:14 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:14 # parametrization, they finalize themselves and fixtures depending on it 21:18:14 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:14 # See #4871 21:18:14 requested_fixtures_that_should_finalize_us = [] 21:18:14 for argname in self.argnames: 21:18:14 fixturedef = request._get_active_fixturedef(argname) 21:18:14 # Saves requested fixtures in a list so we later can add our finalizer 21:18:14 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:14 # down first. This is generally handled by SetupState, but still currently 21:18:14 # needed when this fixture is not parametrized but depends on a parametrized 21:18:14 # fixture. 21:18:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:14 21:18:14 # Check for (and return) cached value/exception. 21:18:14 if self.cached_result is not None: 21:18:14 request_cache_key = self.cache_key(request) 21:18:14 cache_key = self.cached_result[1] 21:18:14 try: 21:18:14 # Attempt to make a normal == check: this might fail for objects 21:18:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:14 cache_hit = bool(request_cache_key == cache_key) 21:18:14 except (ValueError, RuntimeError): 21:18:14 # If the comparison raises, use 'is' as fallback. 21:18:14 cache_hit = request_cache_key is cache_key 21:18:14 21:18:14 if cache_hit: 21:18:14 if self.cached_result[2] is not None: 21:18:14 exc, exc_tb = self.cached_result[2] 21:18:14 raise exc.with_traceback(exc_tb) 21:18:14 else: 21:18:14 return self.cached_result[0] 21:18:14 # We have a previous but differently parametrized fixture instance 21:18:14 # so we need to tear it down before creating a new one. 21:18:14 self.finish(request) 21:18:14 assert self.cached_result is None 21:18:14 21:18:14 # Add finalizer to requested fixtures we saved previously. 21:18:14 # We make sure to do this after checking for cached value to avoid 21:18:14 # adding our finalizer multiple times. (#12135) 21:18:14 finalizer = functools.partial(self.finish, request=request) 21:18:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:14 parent_fixture.addfinalizer(finalizer) 21:18:14 21:18:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:14 # which is executed last. 21:18:14 > assert not self._finalizers 21:18:14 ^^^^^^^^^^^^^^^^^^^^ 21:18:14 E AssertionError 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:18:14 ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ 21:18:14 21:18:14 cls = 21:18:14 func = . at 0x7f4dd14f7100> 21:18:14 when = 'setup' 21:18:14 reraise = (, ) 21:18:14 21:18:14 @classmethod 21:18:14 def from_call( 21:18:14 cls, 21:18:14 func: Callable[[], TResult], 21:18:14 when: Literal["collect", "setup", "call", "teardown"], 21:18:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:14 ) -> CallInfo[TResult]: 21:18:14 """Call func, wrapping the result in a CallInfo. 21:18:14 21:18:14 :param func: 21:18:14 The function to call. Called without arguments. 21:18:14 :type func: Callable[[], _pytest.runner.TResult] 21:18:14 :param when: 21:18:14 The phase in which the function is called. 21:18:14 :param reraise: 21:18:14 Exception or exceptions that shall propagate if raised by the 21:18:14 function, instead of being wrapped in the CallInfo. 21:18:14 """ 21:18:14 excinfo = None 21:18:14 instant = timing.Instant() 21:18:14 try: 21:18:14 > result: TResult | None = func() 21:18:14 ^^^^^^ 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:14 lambda: runtest_hook(item=item, **kwds), 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:18:14 return self._hookexec( 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:18:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:18:14 yield 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:18:14 return (yield) 21:18:14 ^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:14 item.session._setupstate.setup(item) 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:14 col.setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:18:14 super().setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:18:14 self._request._fillfixtures() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:18:14 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:18:14 fixturedef = self._get_active_fixturedef(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:18:14 fixturedef.execute(request=subrequest) 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 21:18:14 self = 21:18:14 request = > 21:18:14 21:18:14 def execute(self, request: SubRequest) -> FixtureValue: 21:18:14 """Return the value of this fixture, executing it if not cached.""" 21:18:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:14 # This needs to be done before checking if we have a cached value, since 21:18:14 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:14 # parametrization, they finalize themselves and fixtures depending on it 21:18:14 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:14 # See #4871 21:18:14 requested_fixtures_that_should_finalize_us = [] 21:18:14 for argname in self.argnames: 21:18:14 fixturedef = request._get_active_fixturedef(argname) 21:18:14 # Saves requested fixtures in a list so we later can add our finalizer 21:18:14 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:14 # down first. This is generally handled by SetupState, but still currently 21:18:14 # needed when this fixture is not parametrized but depends on a parametrized 21:18:14 # fixture. 21:18:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:14 21:18:14 # Check for (and return) cached value/exception. 21:18:14 if self.cached_result is not None: 21:18:14 request_cache_key = self.cache_key(request) 21:18:14 cache_key = self.cached_result[1] 21:18:14 try: 21:18:14 # Attempt to make a normal == check: this might fail for objects 21:18:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:14 cache_hit = bool(request_cache_key == cache_key) 21:18:14 except (ValueError, RuntimeError): 21:18:14 # If the comparison raises, use 'is' as fallback. 21:18:14 cache_hit = request_cache_key is cache_key 21:18:14 21:18:14 if cache_hit: 21:18:14 if self.cached_result[2] is not None: 21:18:14 exc, exc_tb = self.cached_result[2] 21:18:14 raise exc.with_traceback(exc_tb) 21:18:14 else: 21:18:14 return self.cached_result[0] 21:18:14 # We have a previous but differently parametrized fixture instance 21:18:14 # so we need to tear it down before creating a new one. 21:18:14 self.finish(request) 21:18:14 assert self.cached_result is None 21:18:14 21:18:14 # Add finalizer to requested fixtures we saved previously. 21:18:14 # We make sure to do this after checking for cached value to avoid 21:18:14 # adding our finalizer multiple times. (#12135) 21:18:14 finalizer = functools.partial(self.finish, request=request) 21:18:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:14 parent_fixture.addfinalizer(finalizer) 21:18:14 21:18:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:14 # which is executed last. 21:18:14 > assert not self._finalizers 21:18:14 ^^^^^^^^^^^^^^^^^^^^ 21:18:14 E AssertionError 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:18:14 ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ 21:18:14 21:18:14 cls = 21:18:14 func = . at 0x7f4dd14a2840> 21:18:14 when = 'setup' 21:18:14 reraise = (, ) 21:18:14 21:18:14 @classmethod 21:18:14 def from_call( 21:18:14 cls, 21:18:14 func: Callable[[], TResult], 21:18:14 when: Literal["collect", "setup", "call", "teardown"], 21:18:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:14 ) -> CallInfo[TResult]: 21:18:14 """Call func, wrapping the result in a CallInfo. 21:18:14 21:18:14 :param func: 21:18:14 The function to call. Called without arguments. 21:18:14 :type func: Callable[[], _pytest.runner.TResult] 21:18:14 :param when: 21:18:14 The phase in which the function is called. 21:18:14 :param reraise: 21:18:14 Exception or exceptions that shall propagate if raised by the 21:18:14 function, instead of being wrapped in the CallInfo. 21:18:14 """ 21:18:14 excinfo = None 21:18:14 instant = timing.Instant() 21:18:14 try: 21:18:14 > result: TResult | None = func() 21:18:14 ^^^^^^ 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:14 lambda: runtest_hook(item=item, **kwds), 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:18:14 return self._hookexec( 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:18:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:18:14 yield 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:18:14 return (yield) 21:18:14 ^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:14 item.session._setupstate.setup(item) 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:14 col.setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:18:14 super().setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:18:14 self._request._fillfixtures() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:18:14 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:18:14 fixturedef = self._get_active_fixturedef(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:18:14 fixturedef.execute(request=subrequest) 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 21:18:14 self = 21:18:14 request = > 21:18:14 21:18:14 def execute(self, request: SubRequest) -> FixtureValue: 21:18:14 """Return the value of this fixture, executing it if not cached.""" 21:18:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:14 # This needs to be done before checking if we have a cached value, since 21:18:14 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:14 # parametrization, they finalize themselves and fixtures depending on it 21:18:14 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:14 # See #4871 21:18:14 requested_fixtures_that_should_finalize_us = [] 21:18:14 for argname in self.argnames: 21:18:14 fixturedef = request._get_active_fixturedef(argname) 21:18:14 # Saves requested fixtures in a list so we later can add our finalizer 21:18:14 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:14 # down first. This is generally handled by SetupState, but still currently 21:18:14 # needed when this fixture is not parametrized but depends on a parametrized 21:18:14 # fixture. 21:18:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:14 21:18:14 # Check for (and return) cached value/exception. 21:18:14 if self.cached_result is not None: 21:18:14 request_cache_key = self.cache_key(request) 21:18:14 cache_key = self.cached_result[1] 21:18:14 try: 21:18:14 # Attempt to make a normal == check: this might fail for objects 21:18:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:14 cache_hit = bool(request_cache_key == cache_key) 21:18:14 except (ValueError, RuntimeError): 21:18:14 # If the comparison raises, use 'is' as fallback. 21:18:14 cache_hit = request_cache_key is cache_key 21:18:14 21:18:14 if cache_hit: 21:18:14 if self.cached_result[2] is not None: 21:18:14 exc, exc_tb = self.cached_result[2] 21:18:14 raise exc.with_traceback(exc_tb) 21:18:14 else: 21:18:14 return self.cached_result[0] 21:18:14 # We have a previous but differently parametrized fixture instance 21:18:14 # so we need to tear it down before creating a new one. 21:18:14 self.finish(request) 21:18:14 assert self.cached_result is None 21:18:14 21:18:14 # Add finalizer to requested fixtures we saved previously. 21:18:14 # We make sure to do this after checking for cached value to avoid 21:18:14 # adding our finalizer multiple times. (#12135) 21:18:14 finalizer = functools.partial(self.finish, request=request) 21:18:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:14 parent_fixture.addfinalizer(finalizer) 21:18:14 21:18:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:14 # which is executed last. 21:18:14 > assert not self._finalizers 21:18:14 ^^^^^^^^^^^^^^^^^^^^ 21:18:14 E AssertionError 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:18:14 _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ 21:18:14 21:18:14 cls = 21:18:14 func = . at 0x7f4dd14f7f60> 21:18:14 when = 'setup' 21:18:14 reraise = (, ) 21:18:14 21:18:14 @classmethod 21:18:14 def from_call( 21:18:14 cls, 21:18:14 func: Callable[[], TResult], 21:18:14 when: Literal["collect", "setup", "call", "teardown"], 21:18:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:14 ) -> CallInfo[TResult]: 21:18:14 """Call func, wrapping the result in a CallInfo. 21:18:14 21:18:14 :param func: 21:18:14 The function to call. Called without arguments. 21:18:14 :type func: Callable[[], _pytest.runner.TResult] 21:18:14 :param when: 21:18:14 The phase in which the function is called. 21:18:14 :param reraise: 21:18:14 Exception or exceptions that shall propagate if raised by the 21:18:14 function, instead of being wrapped in the CallInfo. 21:18:14 """ 21:18:14 excinfo = None 21:18:14 instant = timing.Instant() 21:18:14 try: 21:18:14 > result: TResult | None = func() 21:18:14 ^^^^^^ 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:14 lambda: runtest_hook(item=item, **kwds), 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:18:14 return self._hookexec( 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:18:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:18:14 yield 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:18:14 return (yield) 21:18:14 ^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:14 item.session._setupstate.setup(item) 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:14 col.setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:18:14 super().setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:18:14 self._request._fillfixtures() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:18:14 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:18:14 fixturedef = self._get_active_fixturedef(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:18:14 fixturedef.execute(request=subrequest) 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 21:18:14 self = 21:18:14 request = > 21:18:14 21:18:14 def execute(self, request: SubRequest) -> FixtureValue: 21:18:14 """Return the value of this fixture, executing it if not cached.""" 21:18:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:14 # This needs to be done before checking if we have a cached value, since 21:18:14 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:14 # parametrization, they finalize themselves and fixtures depending on it 21:18:14 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:14 # See #4871 21:18:14 requested_fixtures_that_should_finalize_us = [] 21:18:14 for argname in self.argnames: 21:18:14 fixturedef = request._get_active_fixturedef(argname) 21:18:14 # Saves requested fixtures in a list so we later can add our finalizer 21:18:14 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:14 # down first. This is generally handled by SetupState, but still currently 21:18:14 # needed when this fixture is not parametrized but depends on a parametrized 21:18:14 # fixture. 21:18:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:14 21:18:14 # Check for (and return) cached value/exception. 21:18:14 if self.cached_result is not None: 21:18:14 request_cache_key = self.cache_key(request) 21:18:14 cache_key = self.cached_result[1] 21:18:14 try: 21:18:14 # Attempt to make a normal == check: this might fail for objects 21:18:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:14 cache_hit = bool(request_cache_key == cache_key) 21:18:14 except (ValueError, RuntimeError): 21:18:14 # If the comparison raises, use 'is' as fallback. 21:18:14 cache_hit = request_cache_key is cache_key 21:18:14 21:18:14 if cache_hit: 21:18:14 if self.cached_result[2] is not None: 21:18:14 exc, exc_tb = self.cached_result[2] 21:18:14 raise exc.with_traceback(exc_tb) 21:18:14 else: 21:18:14 return self.cached_result[0] 21:18:14 # We have a previous but differently parametrized fixture instance 21:18:14 # so we need to tear it down before creating a new one. 21:18:14 self.finish(request) 21:18:14 assert self.cached_result is None 21:18:14 21:18:14 # Add finalizer to requested fixtures we saved previously. 21:18:14 # We make sure to do this after checking for cached value to avoid 21:18:14 # adding our finalizer multiple times. (#12135) 21:18:14 finalizer = functools.partial(self.finish, request=request) 21:18:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:14 parent_fixture.addfinalizer(finalizer) 21:18:14 21:18:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:14 # which is executed last. 21:18:14 > assert not self._finalizers 21:18:14 ^^^^^^^^^^^^^^^^^^^^ 21:18:14 E AssertionError 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:18:14 ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ 21:18:14 21:18:14 cls = 21:18:14 func = . at 0x7f4dd14f53a0> 21:18:14 when = 'setup' 21:18:14 reraise = (, ) 21:18:14 21:18:14 @classmethod 21:18:14 def from_call( 21:18:14 cls, 21:18:14 func: Callable[[], TResult], 21:18:14 when: Literal["collect", "setup", "call", "teardown"], 21:18:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:14 ) -> CallInfo[TResult]: 21:18:14 """Call func, wrapping the result in a CallInfo. 21:18:14 21:18:14 :param func: 21:18:14 The function to call. Called without arguments. 21:18:14 :type func: Callable[[], _pytest.runner.TResult] 21:18:14 :param when: 21:18:14 The phase in which the function is called. 21:18:14 :param reraise: 21:18:14 Exception or exceptions that shall propagate if raised by the 21:18:14 function, instead of being wrapped in the CallInfo. 21:18:14 """ 21:18:14 excinfo = None 21:18:14 instant = timing.Instant() 21:18:14 try: 21:18:14 > result: TResult | None = func() 21:18:14 ^^^^^^ 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:14 lambda: runtest_hook(item=item, **kwds), 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:18:14 return self._hookexec( 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:18:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:18:14 yield 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:18:14 return (yield) 21:18:14 ^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:14 item.session._setupstate.setup(item) 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:14 col.setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:18:14 super().setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:18:14 self._request._fillfixtures() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:18:14 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:18:14 fixturedef = self._get_active_fixturedef(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:18:14 fixturedef.execute(request=subrequest) 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 21:18:14 self = 21:18:14 request = > 21:18:14 21:18:14 def execute(self, request: SubRequest) -> FixtureValue: 21:18:14 """Return the value of this fixture, executing it if not cached.""" 21:18:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:14 # This needs to be done before checking if we have a cached value, since 21:18:14 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:14 # parametrization, they finalize themselves and fixtures depending on it 21:18:14 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:14 # See #4871 21:18:14 requested_fixtures_that_should_finalize_us = [] 21:18:14 for argname in self.argnames: 21:18:14 fixturedef = request._get_active_fixturedef(argname) 21:18:14 # Saves requested fixtures in a list so we later can add our finalizer 21:18:14 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:14 # down first. This is generally handled by SetupState, but still currently 21:18:14 # needed when this fixture is not parametrized but depends on a parametrized 21:18:14 # fixture. 21:18:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:14 21:18:14 # Check for (and return) cached value/exception. 21:18:14 if self.cached_result is not None: 21:18:14 request_cache_key = self.cache_key(request) 21:18:14 cache_key = self.cached_result[1] 21:18:14 try: 21:18:14 # Attempt to make a normal == check: this might fail for objects 21:18:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:14 cache_hit = bool(request_cache_key == cache_key) 21:18:14 except (ValueError, RuntimeError): 21:18:14 # If the comparison raises, use 'is' as fallback. 21:18:14 cache_hit = request_cache_key is cache_key 21:18:14 21:18:14 if cache_hit: 21:18:14 if self.cached_result[2] is not None: 21:18:14 exc, exc_tb = self.cached_result[2] 21:18:14 raise exc.with_traceback(exc_tb) 21:18:14 else: 21:18:14 return self.cached_result[0] 21:18:14 # We have a previous but differently parametrized fixture instance 21:18:14 # so we need to tear it down before creating a new one. 21:18:14 self.finish(request) 21:18:14 assert self.cached_result is None 21:18:14 21:18:14 # Add finalizer to requested fixtures we saved previously. 21:18:14 # We make sure to do this after checking for cached value to avoid 21:18:14 # adding our finalizer multiple times. (#12135) 21:18:14 finalizer = functools.partial(self.finish, request=request) 21:18:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:14 parent_fixture.addfinalizer(finalizer) 21:18:14 21:18:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:14 # which is executed last. 21:18:14 > assert not self._finalizers 21:18:14 ^^^^^^^^^^^^^^^^^^^^ 21:18:14 E AssertionError 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:18:14 _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ 21:18:14 21:18:14 cls = 21:18:14 func = . at 0x7f4dd14a2840> 21:18:14 when = 'setup' 21:18:14 reraise = (, ) 21:18:14 21:18:14 @classmethod 21:18:14 def from_call( 21:18:14 cls, 21:18:14 func: Callable[[], TResult], 21:18:14 when: Literal["collect", "setup", "call", "teardown"], 21:18:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:14 ) -> CallInfo[TResult]: 21:18:14 """Call func, wrapping the result in a CallInfo. 21:18:14 21:18:14 :param func: 21:18:14 The function to call. Called without arguments. 21:18:14 :type func: Callable[[], _pytest.runner.TResult] 21:18:14 :param when: 21:18:14 The phase in which the function is called. 21:18:14 :param reraise: 21:18:14 Exception or exceptions that shall propagate if raised by the 21:18:14 function, instead of being wrapped in the CallInfo. 21:18:14 """ 21:18:14 excinfo = None 21:18:14 instant = timing.Instant() 21:18:14 try: 21:18:14 > result: TResult | None = func() 21:18:14 ^^^^^^ 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:14 lambda: runtest_hook(item=item, **kwds), 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:18:14 return self._hookexec( 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:18:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:18:14 yield 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:18:14 return (yield) 21:18:14 ^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:14 item.session._setupstate.setup(item) 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:14 col.setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:18:14 super().setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:18:14 self._request._fillfixtures() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:18:14 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:18:14 fixturedef = self._get_active_fixturedef(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:18:14 fixturedef.execute(request=subrequest) 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 21:18:14 self = 21:18:14 request = > 21:18:14 21:18:14 def execute(self, request: SubRequest) -> FixtureValue: 21:18:14 """Return the value of this fixture, executing it if not cached.""" 21:18:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:14 # This needs to be done before checking if we have a cached value, since 21:18:14 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:14 # parametrization, they finalize themselves and fixtures depending on it 21:18:14 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:14 # See #4871 21:18:14 requested_fixtures_that_should_finalize_us = [] 21:18:14 for argname in self.argnames: 21:18:14 fixturedef = request._get_active_fixturedef(argname) 21:18:14 # Saves requested fixtures in a list so we later can add our finalizer 21:18:14 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:14 # down first. This is generally handled by SetupState, but still currently 21:18:14 # needed when this fixture is not parametrized but depends on a parametrized 21:18:14 # fixture. 21:18:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:14 21:18:14 # Check for (and return) cached value/exception. 21:18:14 if self.cached_result is not None: 21:18:14 request_cache_key = self.cache_key(request) 21:18:14 cache_key = self.cached_result[1] 21:18:14 try: 21:18:14 # Attempt to make a normal == check: this might fail for objects 21:18:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:14 cache_hit = bool(request_cache_key == cache_key) 21:18:14 except (ValueError, RuntimeError): 21:18:14 # If the comparison raises, use 'is' as fallback. 21:18:14 cache_hit = request_cache_key is cache_key 21:18:14 21:18:14 if cache_hit: 21:18:14 if self.cached_result[2] is not None: 21:18:14 exc, exc_tb = self.cached_result[2] 21:18:14 raise exc.with_traceback(exc_tb) 21:18:14 else: 21:18:14 return self.cached_result[0] 21:18:14 # We have a previous but differently parametrized fixture instance 21:18:14 # so we need to tear it down before creating a new one. 21:18:14 self.finish(request) 21:18:14 assert self.cached_result is None 21:18:14 21:18:14 # Add finalizer to requested fixtures we saved previously. 21:18:14 # We make sure to do this after checking for cached value to avoid 21:18:14 # adding our finalizer multiple times. (#12135) 21:18:14 finalizer = functools.partial(self.finish, request=request) 21:18:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:14 parent_fixture.addfinalizer(finalizer) 21:18:14 21:18:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:14 # which is executed last. 21:18:14 > assert not self._finalizers 21:18:14 ^^^^^^^^^^^^^^^^^^^^ 21:18:14 E AssertionError 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:18:14 ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ 21:18:14 21:18:14 cls = 21:18:14 func = . at 0x7f4dd14f7f60> 21:18:14 when = 'setup' 21:18:14 reraise = (, ) 21:18:14 21:18:14 @classmethod 21:18:14 def from_call( 21:18:14 cls, 21:18:14 func: Callable[[], TResult], 21:18:14 when: Literal["collect", "setup", "call", "teardown"], 21:18:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:14 ) -> CallInfo[TResult]: 21:18:14 """Call func, wrapping the result in a CallInfo. 21:18:14 21:18:14 :param func: 21:18:14 The function to call. Called without arguments. 21:18:14 :type func: Callable[[], _pytest.runner.TResult] 21:18:14 :param when: 21:18:14 The phase in which the function is called. 21:18:14 :param reraise: 21:18:14 Exception or exceptions that shall propagate if raised by the 21:18:14 function, instead of being wrapped in the CallInfo. 21:18:14 """ 21:18:14 excinfo = None 21:18:14 instant = timing.Instant() 21:18:14 try: 21:18:14 > result: TResult | None = func() 21:18:14 ^^^^^^ 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:14 lambda: runtest_hook(item=item, **kwds), 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:18:14 return self._hookexec( 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:18:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:18:14 yield 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:18:14 return (yield) 21:18:14 ^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:14 item.session._setupstate.setup(item) 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:14 col.setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:18:14 super().setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:18:14 self._request._fillfixtures() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:18:14 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:18:14 fixturedef = self._get_active_fixturedef(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:18:14 fixturedef.execute(request=subrequest) 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 21:18:14 self = 21:18:14 request = > 21:18:14 21:18:14 def execute(self, request: SubRequest) -> FixtureValue: 21:18:14 """Return the value of this fixture, executing it if not cached.""" 21:18:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:14 # This needs to be done before checking if we have a cached value, since 21:18:14 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:14 # parametrization, they finalize themselves and fixtures depending on it 21:18:14 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:14 # See #4871 21:18:14 requested_fixtures_that_should_finalize_us = [] 21:18:14 for argname in self.argnames: 21:18:14 fixturedef = request._get_active_fixturedef(argname) 21:18:14 # Saves requested fixtures in a list so we later can add our finalizer 21:18:14 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:14 # down first. This is generally handled by SetupState, but still currently 21:18:14 # needed when this fixture is not parametrized but depends on a parametrized 21:18:14 # fixture. 21:18:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:14 21:18:14 # Check for (and return) cached value/exception. 21:18:14 if self.cached_result is not None: 21:18:14 request_cache_key = self.cache_key(request) 21:18:14 cache_key = self.cached_result[1] 21:18:14 try: 21:18:14 # Attempt to make a normal == check: this might fail for objects 21:18:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:14 cache_hit = bool(request_cache_key == cache_key) 21:18:14 except (ValueError, RuntimeError): 21:18:14 # If the comparison raises, use 'is' as fallback. 21:18:14 cache_hit = request_cache_key is cache_key 21:18:14 21:18:14 if cache_hit: 21:18:14 if self.cached_result[2] is not None: 21:18:14 exc, exc_tb = self.cached_result[2] 21:18:14 raise exc.with_traceback(exc_tb) 21:18:14 else: 21:18:14 return self.cached_result[0] 21:18:14 # We have a previous but differently parametrized fixture instance 21:18:14 # so we need to tear it down before creating a new one. 21:18:14 self.finish(request) 21:18:14 assert self.cached_result is None 21:18:14 21:18:14 # Add finalizer to requested fixtures we saved previously. 21:18:14 # We make sure to do this after checking for cached value to avoid 21:18:14 # adding our finalizer multiple times. (#12135) 21:18:14 finalizer = functools.partial(self.finish, request=request) 21:18:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:14 parent_fixture.addfinalizer(finalizer) 21:18:14 21:18:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:14 # which is executed last. 21:18:14 > assert not self._finalizers 21:18:14 ^^^^^^^^^^^^^^^^^^^^ 21:18:14 E AssertionError 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:18:14 ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ 21:18:14 21:18:14 cls = 21:18:14 func = . at 0x7f4dd14f6f20> 21:18:14 when = 'setup' 21:18:14 reraise = (, ) 21:18:14 21:18:14 @classmethod 21:18:14 def from_call( 21:18:14 cls, 21:18:14 func: Callable[[], TResult], 21:18:14 when: Literal["collect", "setup", "call", "teardown"], 21:18:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:14 ) -> CallInfo[TResult]: 21:18:14 """Call func, wrapping the result in a CallInfo. 21:18:14 21:18:14 :param func: 21:18:14 The function to call. Called without arguments. 21:18:14 :type func: Callable[[], _pytest.runner.TResult] 21:18:14 :param when: 21:18:14 The phase in which the function is called. 21:18:14 :param reraise: 21:18:14 Exception or exceptions that shall propagate if raised by the 21:18:14 function, instead of being wrapped in the CallInfo. 21:18:14 """ 21:18:14 excinfo = None 21:18:14 instant = timing.Instant() 21:18:14 try: 21:18:14 > result: TResult | None = func() 21:18:14 ^^^^^^ 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:14 lambda: runtest_hook(item=item, **kwds), 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:18:14 return self._hookexec( 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:18:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:18:14 yield 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:18:14 return (yield) 21:18:14 ^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:14 item.session._setupstate.setup(item) 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:14 col.setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:18:14 super().setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:18:14 self._request._fillfixtures() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:18:14 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:18:14 fixturedef = self._get_active_fixturedef(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:18:14 fixturedef.execute(request=subrequest) 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 21:18:14 self = 21:18:14 request = > 21:18:14 21:18:14 def execute(self, request: SubRequest) -> FixtureValue: 21:18:14 """Return the value of this fixture, executing it if not cached.""" 21:18:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:14 # This needs to be done before checking if we have a cached value, since 21:18:14 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:14 # parametrization, they finalize themselves and fixtures depending on it 21:18:14 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:14 # See #4871 21:18:14 requested_fixtures_that_should_finalize_us = [] 21:18:14 for argname in self.argnames: 21:18:14 fixturedef = request._get_active_fixturedef(argname) 21:18:14 # Saves requested fixtures in a list so we later can add our finalizer 21:18:14 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:14 # down first. This is generally handled by SetupState, but still currently 21:18:14 # needed when this fixture is not parametrized but depends on a parametrized 21:18:14 # fixture. 21:18:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:14 21:18:14 # Check for (and return) cached value/exception. 21:18:14 if self.cached_result is not None: 21:18:14 request_cache_key = self.cache_key(request) 21:18:14 cache_key = self.cached_result[1] 21:18:14 try: 21:18:14 # Attempt to make a normal == check: this might fail for objects 21:18:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:14 cache_hit = bool(request_cache_key == cache_key) 21:18:14 except (ValueError, RuntimeError): 21:18:14 # If the comparison raises, use 'is' as fallback. 21:18:14 cache_hit = request_cache_key is cache_key 21:18:14 21:18:14 if cache_hit: 21:18:14 if self.cached_result[2] is not None: 21:18:14 exc, exc_tb = self.cached_result[2] 21:18:14 raise exc.with_traceback(exc_tb) 21:18:14 else: 21:18:14 return self.cached_result[0] 21:18:14 # We have a previous but differently parametrized fixture instance 21:18:14 # so we need to tear it down before creating a new one. 21:18:14 self.finish(request) 21:18:14 assert self.cached_result is None 21:18:14 21:18:14 # Add finalizer to requested fixtures we saved previously. 21:18:14 # We make sure to do this after checking for cached value to avoid 21:18:14 # adding our finalizer multiple times. (#12135) 21:18:14 finalizer = functools.partial(self.finish, request=request) 21:18:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:14 parent_fixture.addfinalizer(finalizer) 21:18:14 21:18:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:14 # which is executed last. 21:18:14 > assert not self._finalizers 21:18:14 ^^^^^^^^^^^^^^^^^^^^ 21:18:14 E AssertionError 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:18:14 ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ 21:18:14 21:18:14 cls = 21:18:14 func = . at 0x7f4dd14f7880> 21:18:14 when = 'setup' 21:18:14 reraise = (, ) 21:18:14 21:18:14 @classmethod 21:18:14 def from_call( 21:18:14 cls, 21:18:14 func: Callable[[], TResult], 21:18:14 when: Literal["collect", "setup", "call", "teardown"], 21:18:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:14 ) -> CallInfo[TResult]: 21:18:14 """Call func, wrapping the result in a CallInfo. 21:18:14 21:18:14 :param func: 21:18:14 The function to call. Called without arguments. 21:18:14 :type func: Callable[[], _pytest.runner.TResult] 21:18:14 :param when: 21:18:14 The phase in which the function is called. 21:18:14 :param reraise: 21:18:14 Exception or exceptions that shall propagate if raised by the 21:18:14 function, instead of being wrapped in the CallInfo. 21:18:14 """ 21:18:14 excinfo = None 21:18:14 instant = timing.Instant() 21:18:14 try: 21:18:14 > result: TResult | None = func() 21:18:14 ^^^^^^ 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:14 lambda: runtest_hook(item=item, **kwds), 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:18:14 return self._hookexec( 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:18:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:18:14 yield 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:18:14 return (yield) 21:18:14 ^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:14 item.session._setupstate.setup(item) 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:14 col.setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:18:14 super().setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:18:14 self._request._fillfixtures() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:18:14 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:18:14 fixturedef = self._get_active_fixturedef(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:18:14 fixturedef.execute(request=subrequest) 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 21:18:14 self = 21:18:14 request = > 21:18:14 21:18:14 def execute(self, request: SubRequest) -> FixtureValue: 21:18:14 """Return the value of this fixture, executing it if not cached.""" 21:18:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:14 # This needs to be done before checking if we have a cached value, since 21:18:14 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:14 # parametrization, they finalize themselves and fixtures depending on it 21:18:14 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:14 # See #4871 21:18:14 requested_fixtures_that_should_finalize_us = [] 21:18:14 for argname in self.argnames: 21:18:14 fixturedef = request._get_active_fixturedef(argname) 21:18:14 # Saves requested fixtures in a list so we later can add our finalizer 21:18:14 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:14 # down first. This is generally handled by SetupState, but still currently 21:18:14 # needed when this fixture is not parametrized but depends on a parametrized 21:18:14 # fixture. 21:18:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:14 21:18:14 # Check for (and return) cached value/exception. 21:18:14 if self.cached_result is not None: 21:18:14 request_cache_key = self.cache_key(request) 21:18:14 cache_key = self.cached_result[1] 21:18:14 try: 21:18:14 # Attempt to make a normal == check: this might fail for objects 21:18:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:14 cache_hit = bool(request_cache_key == cache_key) 21:18:14 except (ValueError, RuntimeError): 21:18:14 # If the comparison raises, use 'is' as fallback. 21:18:14 cache_hit = request_cache_key is cache_key 21:18:14 21:18:14 if cache_hit: 21:18:14 if self.cached_result[2] is not None: 21:18:14 exc, exc_tb = self.cached_result[2] 21:18:14 raise exc.with_traceback(exc_tb) 21:18:14 else: 21:18:14 return self.cached_result[0] 21:18:14 # We have a previous but differently parametrized fixture instance 21:18:14 # so we need to tear it down before creating a new one. 21:18:14 self.finish(request) 21:18:14 assert self.cached_result is None 21:18:14 21:18:14 # Add finalizer to requested fixtures we saved previously. 21:18:14 # We make sure to do this after checking for cached value to avoid 21:18:14 # adding our finalizer multiple times. (#12135) 21:18:14 finalizer = functools.partial(self.finish, request=request) 21:18:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:14 parent_fixture.addfinalizer(finalizer) 21:18:14 21:18:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:14 # which is executed last. 21:18:14 > assert not self._finalizers 21:18:14 ^^^^^^^^^^^^^^^^^^^^ 21:18:14 E AssertionError 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:18:14 _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ 21:18:14 21:18:14 cls = 21:18:14 func = . at 0x7f4dd14f5d00> 21:18:14 when = 'setup' 21:18:14 reraise = (, ) 21:18:14 21:18:14 @classmethod 21:18:14 def from_call( 21:18:14 cls, 21:18:14 func: Callable[[], TResult], 21:18:14 when: Literal["collect", "setup", "call", "teardown"], 21:18:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:14 ) -> CallInfo[TResult]: 21:18:14 """Call func, wrapping the result in a CallInfo. 21:18:14 21:18:14 :param func: 21:18:14 The function to call. Called without arguments. 21:18:14 :type func: Callable[[], _pytest.runner.TResult] 21:18:14 :param when: 21:18:14 The phase in which the function is called. 21:18:14 :param reraise: 21:18:14 Exception or exceptions that shall propagate if raised by the 21:18:14 function, instead of being wrapped in the CallInfo. 21:18:14 """ 21:18:14 excinfo = None 21:18:14 instant = timing.Instant() 21:18:14 try: 21:18:14 > result: TResult | None = func() 21:18:14 ^^^^^^ 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:14 lambda: runtest_hook(item=item, **kwds), 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:18:14 return self._hookexec( 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:18:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:18:14 yield 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:18:14 return (yield) 21:18:14 ^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:14 item.session._setupstate.setup(item) 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:14 col.setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:18:14 super().setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:18:14 self._request._fillfixtures() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:18:14 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:18:14 fixturedef = self._get_active_fixturedef(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:18:14 fixturedef.execute(request=subrequest) 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 21:18:14 self = 21:18:14 request = > 21:18:14 21:18:14 def execute(self, request: SubRequest) -> FixtureValue: 21:18:14 """Return the value of this fixture, executing it if not cached.""" 21:18:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:14 # This needs to be done before checking if we have a cached value, since 21:18:14 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:14 # parametrization, they finalize themselves and fixtures depending on it 21:18:14 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:14 # See #4871 21:18:14 requested_fixtures_that_should_finalize_us = [] 21:18:14 for argname in self.argnames: 21:18:14 fixturedef = request._get_active_fixturedef(argname) 21:18:14 # Saves requested fixtures in a list so we later can add our finalizer 21:18:14 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:14 # down first. This is generally handled by SetupState, but still currently 21:18:14 # needed when this fixture is not parametrized but depends on a parametrized 21:18:14 # fixture. 21:18:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:14 21:18:14 # Check for (and return) cached value/exception. 21:18:14 if self.cached_result is not None: 21:18:14 request_cache_key = self.cache_key(request) 21:18:14 cache_key = self.cached_result[1] 21:18:14 try: 21:18:14 # Attempt to make a normal == check: this might fail for objects 21:18:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:14 cache_hit = bool(request_cache_key == cache_key) 21:18:14 except (ValueError, RuntimeError): 21:18:14 # If the comparison raises, use 'is' as fallback. 21:18:14 cache_hit = request_cache_key is cache_key 21:18:14 21:18:14 if cache_hit: 21:18:14 if self.cached_result[2] is not None: 21:18:14 exc, exc_tb = self.cached_result[2] 21:18:14 raise exc.with_traceback(exc_tb) 21:18:14 else: 21:18:14 return self.cached_result[0] 21:18:14 # We have a previous but differently parametrized fixture instance 21:18:14 # so we need to tear it down before creating a new one. 21:18:14 self.finish(request) 21:18:14 assert self.cached_result is None 21:18:14 21:18:14 # Add finalizer to requested fixtures we saved previously. 21:18:14 # We make sure to do this after checking for cached value to avoid 21:18:14 # adding our finalizer multiple times. (#12135) 21:18:14 finalizer = functools.partial(self.finish, request=request) 21:18:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:14 parent_fixture.addfinalizer(finalizer) 21:18:14 21:18:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:14 # which is executed last. 21:18:14 > assert not self._finalizers 21:18:14 ^^^^^^^^^^^^^^^^^^^^ 21:18:14 E AssertionError 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:18:14 _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ 21:18:14 21:18:14 cls = 21:18:14 func = . at 0x7f4dd14a2200> 21:18:14 when = 'setup' 21:18:14 reraise = (, ) 21:18:14 21:18:14 @classmethod 21:18:14 def from_call( 21:18:14 cls, 21:18:14 func: Callable[[], TResult], 21:18:14 when: Literal["collect", "setup", "call", "teardown"], 21:18:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:14 ) -> CallInfo[TResult]: 21:18:14 """Call func, wrapping the result in a CallInfo. 21:18:14 21:18:14 :param func: 21:18:14 The function to call. Called without arguments. 21:18:14 :type func: Callable[[], _pytest.runner.TResult] 21:18:14 :param when: 21:18:14 The phase in which the function is called. 21:18:14 :param reraise: 21:18:14 Exception or exceptions that shall propagate if raised by the 21:18:14 function, instead of being wrapped in the CallInfo. 21:18:14 """ 21:18:14 excinfo = None 21:18:14 instant = timing.Instant() 21:18:14 try: 21:18:14 > result: TResult | None = func() 21:18:14 ^^^^^^ 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:14 lambda: runtest_hook(item=item, **kwds), 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:18:14 return self._hookexec( 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:18:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:18:14 yield 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:18:14 return (yield) 21:18:14 ^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:14 item.session._setupstate.setup(item) 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:14 col.setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:18:14 super().setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:18:14 self._request._fillfixtures() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:18:14 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:18:14 fixturedef = self._get_active_fixturedef(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:18:14 fixturedef.execute(request=subrequest) 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 21:18:14 self = 21:18:14 request = > 21:18:14 21:18:14 def execute(self, request: SubRequest) -> FixtureValue: 21:18:14 """Return the value of this fixture, executing it if not cached.""" 21:18:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:14 # This needs to be done before checking if we have a cached value, since 21:18:14 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:14 # parametrization, they finalize themselves and fixtures depending on it 21:18:14 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:14 # See #4871 21:18:14 requested_fixtures_that_should_finalize_us = [] 21:18:14 for argname in self.argnames: 21:18:14 fixturedef = request._get_active_fixturedef(argname) 21:18:14 # Saves requested fixtures in a list so we later can add our finalizer 21:18:14 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:14 # down first. This is generally handled by SetupState, but still currently 21:18:14 # needed when this fixture is not parametrized but depends on a parametrized 21:18:14 # fixture. 21:18:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:14 21:18:14 # Check for (and return) cached value/exception. 21:18:14 if self.cached_result is not None: 21:18:14 request_cache_key = self.cache_key(request) 21:18:14 cache_key = self.cached_result[1] 21:18:14 try: 21:18:14 # Attempt to make a normal == check: this might fail for objects 21:18:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:14 cache_hit = bool(request_cache_key == cache_key) 21:18:14 except (ValueError, RuntimeError): 21:18:14 # If the comparison raises, use 'is' as fallback. 21:18:14 cache_hit = request_cache_key is cache_key 21:18:14 21:18:14 if cache_hit: 21:18:14 if self.cached_result[2] is not None: 21:18:14 exc, exc_tb = self.cached_result[2] 21:18:14 raise exc.with_traceback(exc_tb) 21:18:14 else: 21:18:14 return self.cached_result[0] 21:18:14 # We have a previous but differently parametrized fixture instance 21:18:14 # so we need to tear it down before creating a new one. 21:18:14 self.finish(request) 21:18:14 assert self.cached_result is None 21:18:14 21:18:14 # Add finalizer to requested fixtures we saved previously. 21:18:14 # We make sure to do this after checking for cached value to avoid 21:18:14 # adding our finalizer multiple times. (#12135) 21:18:14 finalizer = functools.partial(self.finish, request=request) 21:18:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:14 parent_fixture.addfinalizer(finalizer) 21:18:14 21:18:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:14 # which is executed last. 21:18:14 > assert not self._finalizers 21:18:14 ^^^^^^^^^^^^^^^^^^^^ 21:18:14 E AssertionError 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:18:14 _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ 21:18:14 21:18:14 cls = 21:18:14 func = . at 0x7f4dd14f53a0> 21:18:14 when = 'setup' 21:18:14 reraise = (, ) 21:18:14 21:18:14 @classmethod 21:18:14 def from_call( 21:18:14 cls, 21:18:14 func: Callable[[], TResult], 21:18:14 when: Literal["collect", "setup", "call", "teardown"], 21:18:14 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:18:14 ) -> CallInfo[TResult]: 21:18:14 """Call func, wrapping the result in a CallInfo. 21:18:14 21:18:14 :param func: 21:18:14 The function to call. Called without arguments. 21:18:14 :type func: Callable[[], _pytest.runner.TResult] 21:18:14 :param when: 21:18:14 The phase in which the function is called. 21:18:14 :param reraise: 21:18:14 Exception or exceptions that shall propagate if raised by the 21:18:14 function, instead of being wrapped in the CallInfo. 21:18:14 """ 21:18:14 excinfo = None 21:18:14 instant = timing.Instant() 21:18:14 try: 21:18:14 > result: TResult | None = func() 21:18:14 ^^^^^^ 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:18:14 lambda: runtest_hook(item=item, **kwds), 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:18:14 return self._hookexec( 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:18:14 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:18:14 yield 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:18:14 return (yield) 21:18:14 ^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:18:14 item.session._setupstate.setup(item) 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:18:14 col.setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:18:14 super().setup() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:18:14 self._request._fillfixtures() 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:18:14 item.funcargs[argname] = self.getfixturevalue(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:18:14 fixturedef = self._get_active_fixturedef(argname) 21:18:14 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:18:14 fixturedef.execute(request=subrequest) 21:18:14 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:18:14 21:18:14 self = 21:18:14 request = > 21:18:14 21:18:14 def execute(self, request: SubRequest) -> FixtureValue: 21:18:14 """Return the value of this fixture, executing it if not cached.""" 21:18:14 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:18:14 # This needs to be done before checking if we have a cached value, since 21:18:14 # if a dependent fixture has their cache invalidated, e.g. due to 21:18:14 # parametrization, they finalize themselves and fixtures depending on it 21:18:14 # (which will likely include this fixture) setting `self.cached_result = None`. 21:18:14 # See #4871 21:18:14 requested_fixtures_that_should_finalize_us = [] 21:18:14 for argname in self.argnames: 21:18:14 fixturedef = request._get_active_fixturedef(argname) 21:18:14 # Saves requested fixtures in a list so we later can add our finalizer 21:18:14 # to them, ensuring that if a requested fixture gets torn down we get torn 21:18:14 # down first. This is generally handled by SetupState, but still currently 21:18:14 # needed when this fixture is not parametrized but depends on a parametrized 21:18:14 # fixture. 21:18:14 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:18:14 21:18:14 # Check for (and return) cached value/exception. 21:18:14 if self.cached_result is not None: 21:18:14 request_cache_key = self.cache_key(request) 21:18:14 cache_key = self.cached_result[1] 21:18:14 try: 21:18:14 # Attempt to make a normal == check: this might fail for objects 21:18:14 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:18:14 cache_hit = bool(request_cache_key == cache_key) 21:18:14 except (ValueError, RuntimeError): 21:18:14 # If the comparison raises, use 'is' as fallback. 21:18:14 cache_hit = request_cache_key is cache_key 21:18:14 21:18:14 if cache_hit: 21:18:14 if self.cached_result[2] is not None: 21:18:14 exc, exc_tb = self.cached_result[2] 21:18:14 raise exc.with_traceback(exc_tb) 21:18:14 else: 21:18:14 return self.cached_result[0] 21:18:14 # We have a previous but differently parametrized fixture instance 21:18:14 # so we need to tear it down before creating a new one. 21:18:14 self.finish(request) 21:18:14 assert self.cached_result is None 21:18:14 21:18:14 # Add finalizer to requested fixtures we saved previously. 21:18:14 # We make sure to do this after checking for cached value to avoid 21:18:14 # adding our finalizer multiple times. (#12135) 21:18:14 finalizer = functools.partial(self.finish, request=request) 21:18:14 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:18:14 parent_fixture.addfinalizer(finalizer) 21:18:14 21:18:14 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:18:14 # which is executed last. 21:18:14 > assert not self._finalizers 21:18:14 ^^^^^^^^^^^^^^^^^^^^ 21:18:14 E AssertionError 21:18:14 21:18:14 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:18:14 =========================== short test summary info ============================ 21:18:14 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping 21:18:14 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi 21:18:14 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId 21:18:14 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId 21:18:14 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi 21:18:14 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi 21:18:14 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni 21:18:14 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId 21:18:14 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId 21:18:14 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni 21:18:14 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni 21:18:14 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology 21:18:14 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId 21:18:14 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation 21:18:14 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation 21:18:14 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation 21:18:14 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation 21:18:14 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion 21:18:14 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link 21:18:14 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 21:18:14 20 errors in 122.88s (0:02:02) 21:18:14 testsPCE: exit 1 (123.19 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce pid=5429 21:18:14 testsPCE: FAIL ✖ in 3 minutes 8.36 seconds 21:18:14 tests_tapi: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 21:19:52 tests_tapi: freeze> python -m pip freeze --all 21:19:52 tests_tapi: bcrypt==5.0.0,certifi==2026.10.23,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.1.0,pip==26.3,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.2.0,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 21:19:52 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi 21:19:52 using environment variables from ./karaf221.env 21:19:52 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 21:21:33 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 21:21:39 ==================================== ERRORS ==================================== 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_01_get_tapi_topology_T100G _ 21:21:39 21:21:39 cls = 21:21:39 21:21:39 @classmethod 21:21:39 def setUpClass(cls): 21:21:39 cls.init_failed = False 21:21:39 os.environ['JAVA_MIN_MEM'] = '1024M' 21:21:39 os.environ['JAVA_MAX_MEM'] = '4096M' 21:21:39 > cls.processes = test_utils.start_tpce() 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 21:21:39 transportpce_tests/tapi/test01_abstracted_topology.py:148: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 def start_tpce(): 21:21:39 if 'NO_ODL_STARTUP' in os.environ: 21:21:39 print('No OpenDaylight instance to start!') 21:21:39 return [] 21:21:39 print('starting OpenDaylight...') 21:21:39 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 21:21:39 process = start_lighty() 21:21:39 else: 21:21:39 process = start_karaf() 21:21:39 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 21:21:39 print('OpenDaylight started !') 21:21:39 else: 21:21:39 print('OpenDaylight failed to start !') 21:21:39 shutdown_process(process) 21:21:39 for pid in process_list: 21:21:39 shutdown_process(pid) 21:21:39 > sys.exit(1) 21:21:39 E SystemExit: 1 21:21:39 21:21:39 transportpce_tests/common/test_utils.py:234: SystemExit 21:21:39 ---------------------------- Captured stdout setup ----------------------------- 21:21:39 starting OpenDaylight... 21:21:39 starting KARAF (karaf221) TransportPCE build... 21:21:39 Pattern not found after 100 seconds! OpenDaylight failed to start ! 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_02_get_tapi_topology_T0 _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50ea03920> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_03_connect_rdmb ___ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50ea02fc0> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_04_check_tapi_topos _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff510bd0ea0> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_05_disconnect_roadmb _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50ea03060> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_06_connect_xpdra __ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50e9b1e40> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_07_check_tapi_topos _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50e9b0fe0> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_08_connect_rdma ___ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50ea02a20> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_09_connect_rdmc ___ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50ea03060> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_10_check_tapi_topos _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50e9b1e40> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_11_connect_xpdra_n1_to_roadma_pp1 _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50ea02fc0> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_12_connect_roadma_pp1_to_xpdra_n1 _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50ea03060> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_13_check_tapi_topology_T100G _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50e9b0fe0> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_14_check_tapi_topology_T0 _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50ea03060> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_15_connect_xpdrc __ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50ea02fc0> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_16_connect_xpdrc_n1_to_roadmc_pp1 _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50e9b0fe0> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_17_connect_roadmc_pp1_to_xpdrc_n1 _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50ea02fc0> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_18_check_tapi_topology_T100G _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50e9b20c0> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_19_check_tapi_topology_T0 _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50e9b2340> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_20_connect_spdr_sa1 _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50ea03060> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_21_connect_spdr_sc1 _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50e9b20c0> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_22_check_tapi_topology_T100G _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50ea02fc0> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_23_check_tapi_topology_T0 _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50e9b2340> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_24_connect_sprda_n1_to_roadma_pp2 _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50e9b1e40> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_25_connect_roadma_pp2_to_spdra_n1 _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50e9b20c0> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_26_connect_sprdc_n1_to_roadmc_pp2 _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50ea02fc0> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_27_connect_roadmc_pp2_to_spdrc_n1 _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50e9b1e40> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_28_check_tapi_topology_T100G _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50ea02fc0> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_29_check_tapi_topology_T0 _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50e9b2340> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_30_add_oms_attributes _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50e9b0fe0> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_31_create_OCH_OTU4_service _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50e9b1e40> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50ea02fc0> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_33_create_ODU4_service _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50e9b0fe0> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50e9b20c0> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_35_connect_sprda_2_n2_to_roadma_pp3 _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50ea02fc0> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_36_connect_roadma_pp3_to_spdra_2_n2 _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50e9b0fe0> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50e9b2340> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_38_delete_ODU4_service _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50ea02fc0> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_39_delete_OCH_OTU4_service _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50e9b1e40> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_40_check_tapi_topology_T0 _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50e9b20c0> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_41_disconnect_xponders_from_roadm _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50ea02fc0> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_42_check_tapi_topology_T0 _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50e9b0fe0> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_43_get_tapi_topology_T100G _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50e9b2340> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_44_disconnect_roadma _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50ea02fc0> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_45_disconnect_roadmc _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50e9b1e40> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_46_check_tapi_topos _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50e9b20c0> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_47_disconnect_xpdra _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50e9b0fe0> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_48_disconnect_xpdrc _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50e9b2340> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_49_disconnect_spdr_sa1 _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50ea02fc0> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_50_disconnect_spdr_sc1 _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50e9b1e40> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_51_check_uninstall_Tapi_Feature _ 21:21:39 21:21:39 cls = 21:21:39 func = . at 0x7ff50e9b2340> 21:21:39 when = 'setup' 21:21:39 reraise = (, ) 21:21:39 21:21:39 @classmethod 21:21:39 def from_call( 21:21:39 cls, 21:21:39 func: Callable[[], TResult], 21:21:39 when: Literal["collect", "setup", "call", "teardown"], 21:21:39 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:21:39 ) -> CallInfo[TResult]: 21:21:39 """Call func, wrapping the result in a CallInfo. 21:21:39 21:21:39 :param func: 21:21:39 The function to call. Called without arguments. 21:21:39 :type func: Callable[[], _pytest.runner.TResult] 21:21:39 :param when: 21:21:39 The phase in which the function is called. 21:21:39 :param reraise: 21:21:39 Exception or exceptions that shall propagate if raised by the 21:21:39 function, instead of being wrapped in the CallInfo. 21:21:39 """ 21:21:39 excinfo = None 21:21:39 instant = timing.Instant() 21:21:39 try: 21:21:39 > result: TResult | None = func() 21:21:39 ^^^^^^ 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:21:39 lambda: runtest_hook(item=item, **kwds), 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:21:39 return self._hookexec( 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:21:39 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:21:39 yield 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:21:39 return (yield) 21:21:39 ^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:21:39 item.session._setupstate.setup(item) 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:21:39 col.setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:21:39 super().setup() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:21:39 self._request._fillfixtures() 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:21:39 item.funcargs[argname] = self.getfixturevalue(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:21:39 fixturedef = self._get_active_fixturedef(argname) 21:21:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:21:39 fixturedef.execute(request=subrequest) 21:21:39 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:21:39 21:21:39 self = 21:21:39 request = > 21:21:39 21:21:39 def execute(self, request: SubRequest) -> FixtureValue: 21:21:39 """Return the value of this fixture, executing it if not cached.""" 21:21:39 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:21:39 # This needs to be done before checking if we have a cached value, since 21:21:39 # if a dependent fixture has their cache invalidated, e.g. due to 21:21:39 # parametrization, they finalize themselves and fixtures depending on it 21:21:39 # (which will likely include this fixture) setting `self.cached_result = None`. 21:21:39 # See #4871 21:21:39 requested_fixtures_that_should_finalize_us = [] 21:21:39 for argname in self.argnames: 21:21:39 fixturedef = request._get_active_fixturedef(argname) 21:21:39 # Saves requested fixtures in a list so we later can add our finalizer 21:21:39 # to them, ensuring that if a requested fixture gets torn down we get torn 21:21:39 # down first. This is generally handled by SetupState, but still currently 21:21:39 # needed when this fixture is not parametrized but depends on a parametrized 21:21:39 # fixture. 21:21:39 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:21:39 21:21:39 # Check for (and return) cached value/exception. 21:21:39 if self.cached_result is not None: 21:21:39 request_cache_key = self.cache_key(request) 21:21:39 cache_key = self.cached_result[1] 21:21:39 try: 21:21:39 # Attempt to make a normal == check: this might fail for objects 21:21:39 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:21:39 cache_hit = bool(request_cache_key == cache_key) 21:21:39 except (ValueError, RuntimeError): 21:21:39 # If the comparison raises, use 'is' as fallback. 21:21:39 cache_hit = request_cache_key is cache_key 21:21:39 21:21:39 if cache_hit: 21:21:39 if self.cached_result[2] is not None: 21:21:39 exc, exc_tb = self.cached_result[2] 21:21:39 raise exc.with_traceback(exc_tb) 21:21:39 else: 21:21:39 return self.cached_result[0] 21:21:39 # We have a previous but differently parametrized fixture instance 21:21:39 # so we need to tear it down before creating a new one. 21:21:39 self.finish(request) 21:21:39 assert self.cached_result is None 21:21:39 21:21:39 # Add finalizer to requested fixtures we saved previously. 21:21:39 # We make sure to do this after checking for cached value to avoid 21:21:39 # adding our finalizer multiple times. (#12135) 21:21:39 finalizer = functools.partial(self.finish, request=request) 21:21:39 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:21:39 parent_fixture.addfinalizer(finalizer) 21:21:39 21:21:39 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:21:39 # which is executed last. 21:21:39 > assert not self._finalizers 21:21:39 ^^^^^^^^^^^^^^^^^^^^ 21:21:39 E AssertionError 21:21:39 21:21:39 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:21:39 =========================== short test summary info ============================ 21:21:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_01_get_tapi_topology_T100G 21:21:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_02_get_tapi_topology_T0 21:21:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_03_connect_rdmb 21:21:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_04_check_tapi_topos 21:21:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_05_disconnect_roadmb 21:21:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_06_connect_xpdra 21:21:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_07_check_tapi_topos 21:21:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_08_connect_rdma 21:21:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_09_connect_rdmc 21:21:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_10_check_tapi_topos 21:21:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_11_connect_xpdra_n1_to_roadma_pp1 21:21:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_12_connect_roadma_pp1_to_xpdra_n1 21:21:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_13_check_tapi_topology_T100G 21:21:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_14_check_tapi_topology_T0 21:21:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_15_connect_xpdrc 21:21:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_16_connect_xpdrc_n1_to_roadmc_pp1 21:21:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_17_connect_roadmc_pp1_to_xpdrc_n1 21:21:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_18_check_tapi_topology_T100G 21:21:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_19_check_tapi_topology_T0 21:21:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_20_connect_spdr_sa1 21:21:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_21_connect_spdr_sc1 21:21:39 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_22_check_tapi_topology_T100G 21:21:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_23_check_tapi_topology_T0 21:21:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_24_connect_sprda_n1_to_roadma_pp2 21:21:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_25_connect_roadma_pp2_to_spdra_n1 21:21:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_26_connect_sprdc_n1_to_roadmc_pp2 21:21:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_27_connect_roadmc_pp2_to_spdrc_n1 21:21:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_28_check_tapi_topology_T100G 21:21:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_29_check_tapi_topology_T0 21:21:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_30_add_oms_attributes 21:21:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_31_create_OCH_OTU4_service 21:21:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 21:21:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_33_create_ODU4_service 21:21:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 21:21:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_35_connect_sprda_2_n2_to_roadma_pp3 21:21:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_36_connect_roadma_pp3_to_spdra_2_n2 21:21:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 21:21:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_38_delete_ODU4_service 21:21:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_39_delete_OCH_OTU4_service 21:21:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_40_check_tapi_topology_T0 21:21:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_41_disconnect_xponders_from_roadm 21:21:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_42_check_tapi_topology_T0 21:21:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_43_get_tapi_topology_T100G 21:21:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_44_disconnect_roadma 21:21:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_45_disconnect_roadmc 21:21:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_46_check_tapi_topos 21:21:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_47_disconnect_xpdra 21:21:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_48_disconnect_xpdrc 21:21:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_49_disconnect_spdr_sa1 21:21:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_50_disconnect_spdr_sc1 21:21:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_51_check_uninstall_Tapi_Feature 21:21:40 51 errors in 107.22s (0:01:47) 21:21:40 tests_tapi: exit 1 (107.54 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi pid=5509 21:21:40 tests_tapi: FAIL ✖ in 3 minutes 25.83 seconds 21:21:40 tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 21:21:40 tests200: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 21:21:47 tests200: freeze> python -m pip freeze --all 21:21:47 tests221: freeze> python -m pip freeze --all 21:21:48 tests200: bcrypt==5.0.0,certifi==2026.10.23,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.1.0,pip==26.3,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.2.0,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 21:21:48 tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 21:21:48 using environment variables from ./karafoc200.env 21:21:48 pytest -q transportpce_tests/oc200/test01_portmapping.py 21:21:48 tests221: bcrypt==5.0.0,certifi==2026.10.23,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.1.0,pip==26.3,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.2.0,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 21:21:48 tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 21:21:48 using environment variables from ./karaf221.env 21:21:48 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 21:22:18 .......... [100%] 21:22:34 10 passed in 46.55s 21:22:34 pytest -q transportpce_tests/oc200/test02_topology.py 21:23:04 .........EEEEEEEEEEEEE.EEEEEEEEEEEEE.EEEEEEEEE [100%] 21:23:33 ==================================== ERRORS ==================================== 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 21:23:33 21:23:33 cls = 21:23:33 21:23:33 @classmethod 21:23:33 def setUpClass(cls): 21:23:33 > cls.processes = test_utils.start_tpce() 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 21:23:33 transportpce_tests/2.2.1/test01_portmapping.py:33: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 def start_tpce(): 21:23:33 if 'NO_ODL_STARTUP' in os.environ: 21:23:33 print('No OpenDaylight instance to start!') 21:23:33 return [] 21:23:33 print('starting OpenDaylight...') 21:23:33 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 21:23:33 process = start_lighty() 21:23:33 else: 21:23:33 process = start_karaf() 21:23:33 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 21:23:33 print('OpenDaylight started !') 21:23:33 else: 21:23:33 print('OpenDaylight failed to start !') 21:23:33 shutdown_process(process) 21:23:33 for pid in process_list: 21:23:33 shutdown_process(pid) 21:23:33 > sys.exit(1) 21:23:33 E SystemExit: 1 21:23:33 21:23:33 transportpce_tests/common/test_utils.py:234: SystemExit 21:23:33 ---------------------------- Captured stdout setup ----------------------------- 21:23:33 starting OpenDaylight... 21:23:33 starting KARAF (karaf221) TransportPCE build... 21:23:33 Pattern not found after 100 seconds! OpenDaylight failed to start ! 21:23:33 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a10df02c0> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a10df0540> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a10df28e0> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms _ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a10df05e0> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG1_PP3_TXRX _ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a10df0540> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_07_rdm_portmapping_SRG3_PP1_TXRX _ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a10df28e0> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connection _ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a10e3ae80> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_device_connected __ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a10e3b240> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_info __ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a125c1580> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK1 _ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a10df28e0> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_XPDR2_NETWORK1 _ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a10e399e0> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_XPDR1_CLIENT1 _ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a10df28e0> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_XPDR1_CLIENT2 _ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a125c1580> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_15_spdr_device_connection _ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a10e3b060> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_16_spdr_device_connected __ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a125c1580> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_17_spdr_portmapping_info __ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a10df14e0> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_18_spdr_switching_pool_1 __ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a10df1620> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_19_spdr_switching_pool_2 __ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a10e3ba60> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_20_spdr_switching_pool_3 __ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a10e3b1a0> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_21_spdr_portmapping_mappings _ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a10df1620> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_22_spdr_portmapping_XPDR1_CLIENT1 _ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a10e3b4c0> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_23_spdr_portmapping_XPDR1_NETWORK1 _ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a10e3a5c0> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_24_spdr_portmapping_XPDR2_CLIENT2 _ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a10df1300> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_25_spdr_portmapping_XPDR2_NETWORK2 _ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a10df14e0> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_26_spdr_portmapping_XPDR3_CLIENT3 _ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a10df1300> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_27_spdr_portmapping_XPDR3_NETWORK1 _ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a10e3b4c0> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_28_spdr_device_disconnection _ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a10df14e0> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_29_xpdr_device_disconnected _ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a10e3b1a0> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_30_xpdr_device_disconnection _ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a10e39440> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_31_xpdr_device_disconnected _ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a10df14e0> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_32_xpdr_device_not_connected _ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a10e3b4c0> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_33_rdm_device_disconnection _ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a10e3a200> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_34_rdm_device_disconnected _ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a10df14e0> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 _ ERROR at setup of TestTransportPCEPortmapping.test_35_rdm_device_not_connected _ 21:23:33 21:23:33 cls = 21:23:33 func = . at 0x7f7a10e3b7e0> 21:23:33 when = 'setup' 21:23:33 reraise = (, ) 21:23:33 21:23:33 @classmethod 21:23:33 def from_call( 21:23:33 cls, 21:23:33 func: Callable[[], TResult], 21:23:33 when: Literal["collect", "setup", "call", "teardown"], 21:23:33 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:23:33 ) -> CallInfo[TResult]: 21:23:33 """Call func, wrapping the result in a CallInfo. 21:23:33 21:23:33 :param func: 21:23:33 The function to call. Called without arguments. 21:23:33 :type func: Callable[[], _pytest.runner.TResult] 21:23:33 :param when: 21:23:33 The phase in which the function is called. 21:23:33 :param reraise: 21:23:33 Exception or exceptions that shall propagate if raised by the 21:23:33 function, instead of being wrapped in the CallInfo. 21:23:33 """ 21:23:33 excinfo = None 21:23:33 instant = timing.Instant() 21:23:33 try: 21:23:33 > result: TResult | None = func() 21:23:33 ^^^^^^ 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:23:33 lambda: runtest_hook(item=item, **kwds), 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:23:33 return self._hookexec( 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:23:33 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:23:33 yield 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:23:33 return (yield) 21:23:33 ^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:23:33 item.session._setupstate.setup(item) 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:23:33 col.setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:23:33 super().setup() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:23:33 self._request._fillfixtures() 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:23:33 item.funcargs[argname] = self.getfixturevalue(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:23:33 fixturedef = self._get_active_fixturedef(argname) 21:23:33 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:23:33 fixturedef.execute(request=subrequest) 21:23:33 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:23:33 21:23:33 self = 21:23:33 request = > 21:23:33 21:23:33 def execute(self, request: SubRequest) -> FixtureValue: 21:23:33 """Return the value of this fixture, executing it if not cached.""" 21:23:33 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:23:33 # This needs to be done before checking if we have a cached value, since 21:23:33 # if a dependent fixture has their cache invalidated, e.g. due to 21:23:33 # parametrization, they finalize themselves and fixtures depending on it 21:23:33 # (which will likely include this fixture) setting `self.cached_result = None`. 21:23:33 # See #4871 21:23:33 requested_fixtures_that_should_finalize_us = [] 21:23:33 for argname in self.argnames: 21:23:33 fixturedef = request._get_active_fixturedef(argname) 21:23:33 # Saves requested fixtures in a list so we later can add our finalizer 21:23:33 # to them, ensuring that if a requested fixture gets torn down we get torn 21:23:33 # down first. This is generally handled by SetupState, but still currently 21:23:33 # needed when this fixture is not parametrized but depends on a parametrized 21:23:33 # fixture. 21:23:33 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:23:33 21:23:33 # Check for (and return) cached value/exception. 21:23:33 if self.cached_result is not None: 21:23:33 request_cache_key = self.cache_key(request) 21:23:33 cache_key = self.cached_result[1] 21:23:33 try: 21:23:33 # Attempt to make a normal == check: this might fail for objects 21:23:33 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:23:33 cache_hit = bool(request_cache_key == cache_key) 21:23:33 except (ValueError, RuntimeError): 21:23:33 # If the comparison raises, use 'is' as fallback. 21:23:33 cache_hit = request_cache_key is cache_key 21:23:33 21:23:33 if cache_hit: 21:23:33 if self.cached_result[2] is not None: 21:23:33 exc, exc_tb = self.cached_result[2] 21:23:33 raise exc.with_traceback(exc_tb) 21:23:33 else: 21:23:33 return self.cached_result[0] 21:23:33 # We have a previous but differently parametrized fixture instance 21:23:33 # so we need to tear it down before creating a new one. 21:23:33 self.finish(request) 21:23:33 assert self.cached_result is None 21:23:33 21:23:33 # Add finalizer to requested fixtures we saved previously. 21:23:33 # We make sure to do this after checking for cached value to avoid 21:23:33 # adding our finalizer multiple times. (#12135) 21:23:33 finalizer = functools.partial(self.finish, request=request) 21:23:33 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:23:33 parent_fixture.addfinalizer(finalizer) 21:23:33 21:23:33 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:23:33 # which is executed last. 21:23:33 > assert not self._finalizers 21:23:33 ^^^^^^^^^^^^^^^^^^^^ 21:23:33 E AssertionError 21:23:33 21:23:33 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:23:33 =========================== short test summary info ============================ 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG1_PP3_TXRX 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_rdm_portmapping_SRG3_PP1_TXRX 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connection 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_device_connected 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_info 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK1 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_XPDR2_NETWORK1 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_XPDR1_CLIENT1 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_XPDR1_CLIENT2 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_spdr_device_connection 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_spdr_device_connected 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_spdr_portmapping_info 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_spdr_switching_pool_1 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_spdr_switching_pool_2 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_spdr_switching_pool_3 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_spdr_portmapping_mappings 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_22_spdr_portmapping_XPDR1_CLIENT1 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_23_spdr_portmapping_XPDR1_NETWORK1 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_24_spdr_portmapping_XPDR2_CLIENT2 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_25_spdr_portmapping_XPDR2_NETWORK2 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_26_spdr_portmapping_XPDR3_CLIENT3 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_27_spdr_portmapping_XPDR3_NETWORK1 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_28_spdr_device_disconnection 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_29_xpdr_device_disconnected 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_30_xpdr_device_disconnection 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_31_xpdr_device_disconnected 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_32_xpdr_device_not_connected 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_33_rdm_device_disconnection 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_34_rdm_device_disconnected 21:23:33 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_35_rdm_device_not_connected 21:23:33 35 errors in 105.59s (0:01:45) 21:23:33 tests221: exit 1 (105.90 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 pid=5664 21:23:34 tests221: FAIL ✖ in 1 minute 53.9 seconds 21:23:34 tests_hybrid: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 21:23:34 ... [100%] 21:23:40 14 passed in 65.20s (0:01:05) 21:23:40 pytest -q transportpce_tests/oc200/test03_renderer.py 21:23:42 tests_hybrid: freeze> python -m pip freeze --all 21:23:43 tests_hybrid: bcrypt==5.0.0,certifi==2026.10.23,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.1.0,pip==26.3,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.2.0,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 21:23:43 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid 21:23:43 using environment variables from ./karaf221.env 21:23:43 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 21:24:09 ................ [100%] 21:24:31 16 passed in 50.99s 21:24:31 pytest -q transportpce_tests/oc200/test04_end2end.py 21:25:20 ..EEEEEEEEEEEEEEEE.EEEEEEEE.EEEEEEEEEEEEEEEE.EEEEEE.EEEEE [100%] 21:25:32 ==================================== ERRORS ==================================== 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_01_connect_xpdrA _ 21:25:32 21:25:32 cls = 21:25:32 21:25:32 @classmethod 21:25:32 def setUpClass(cls): 21:25:32 > cls.processes = test_utils.start_tpce() 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 21:25:32 transportpce_tests/hybrid/test01_device_change_notifications.py:76: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 def start_tpce(): 21:25:32 if 'NO_ODL_STARTUP' in os.environ: 21:25:32 print('No OpenDaylight instance to start!') 21:25:32 return [] 21:25:32 print('starting OpenDaylight...') 21:25:32 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 21:25:32 process = start_lighty() 21:25:32 else: 21:25:32 process = start_karaf() 21:25:32 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 21:25:32 print('OpenDaylight started !') 21:25:32 else: 21:25:32 print('OpenDaylight failed to start !') 21:25:32 shutdown_process(process) 21:25:32 for pid in process_list: 21:25:32 shutdown_process(pid) 21:25:32 > sys.exit(1) 21:25:32 E SystemExit: 1 21:25:32 21:25:32 transportpce_tests/common/test_utils.py:234: SystemExit 21:25:32 ---------------------------- Captured stdout setup ----------------------------- 21:25:32 starting OpenDaylight... 21:25:32 starting KARAF (karaf221) TransportPCE build... 21:25:32 Pattern not found after 100 seconds! OpenDaylight failed to start ! 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_02_connect_xpdrC _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af524f100> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_03_connect_rdmA _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af524fce0> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_04_connect_rdmC _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af7410d60> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_05_connect_xpdrA_N1_to_roadmA_PP1 _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af51fcfe0> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_06_connect_roadmA_PP1_to_xpdrA_N1 _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af743fe20> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_07_connect_xpdrC_N1_to_roadmC_PP1 _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af69c18a0> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_08_connect_roadmC_PP1_to_xpdrC_N1 _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af524dda0> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_09_add_omsAttributes_ROADMA_ROADMC _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af524f9c0> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_10_add_omsAttributes_ROADMC_ROADMA _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af51fd4e0> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_11_create_eth_service1 _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af743fe20> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_12_get_eth_service1 _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af524fce0> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_13_change_status_line_port_xpdra _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af51fcfe0> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_14_check_update_portmapping _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af743fe20> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_15_check_update_openroadm_topo _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af524dbc0> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_16_check_update_service1 _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af524df80> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_17_restore_status_line_port_xpdra _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af743fe20> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_18_check_update_portmapping_ok _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af51fd440> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_19_check_update_openroadm_topo_ok _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af524e160> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_20_check_update_service1_ok _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af743fe20> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_21_change_status_port_roadma_srg _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af51fd580> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_22_check_update_portmapping _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af51fd440> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_23_check_update_openroadm_topo _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af51fcfe0> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_24_restore_status_port_roadma_srg _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af51fd300> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_25_check_update_portmapping_ok _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af51fd580> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_26_check_update_openroadm_topo_ok _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af51fd120> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_27_check_update_service1_ok _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af51fcfe0> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_28_change_status_line_port_roadma_deg _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af524e160> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_29_check_update_portmapping _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af51fd300> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_30_check_update_openroadm_topo _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af51fd580> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_31_restore_status_line_port_roadma_srg _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af524e160> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_32_check_update_portmapping_ok _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af51fd300> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_33_check_update_openroadm_topo_ok _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af51fcfe0> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_34_check_update_service1_ok _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af524e160> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_35_change_status_line_port_xpdrc _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af51fd300> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_36_check_update_portmapping _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af51fd580> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_37_check_update_openroadm_topo _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af524e160> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_38_restore_status_line_port_xpdrc _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af51fcfe0> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_39_check_update_portmapping_ok _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af51fd580> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_40_check_update_openroadm_topo_ok _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af51fcfe0> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_41_check_update_service1_ok _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af51fd300> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_42_change_status_port_roadma_srg _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af51fd120> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_43_check_update_portmapping _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af524e160> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_44_check_update_openroadm_topo _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af51fd580> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_45_check_update_service1_ok _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af51fd120> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_46_delete_eth_service1 _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af51fd580> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_47_disconnect_xponders_from_roadm _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af51fcfe0> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_48_disconnect_XPDRA _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af51fd300> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_49_disconnect_XPDRC _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af524e160> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_50_disconnect_ROADMA _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af51fd120> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_51_disconnect_ROADMC _ 21:25:32 21:25:32 cls = 21:25:32 func = . at 0x7f4af51fd300> 21:25:32 when = 'setup' 21:25:32 reraise = (, ) 21:25:32 21:25:32 @classmethod 21:25:32 def from_call( 21:25:32 cls, 21:25:32 func: Callable[[], TResult], 21:25:32 when: Literal["collect", "setup", "call", "teardown"], 21:25:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 21:25:32 ) -> CallInfo[TResult]: 21:25:32 """Call func, wrapping the result in a CallInfo. 21:25:32 21:25:32 :param func: 21:25:32 The function to call. Called without arguments. 21:25:32 :type func: Callable[[], _pytest.runner.TResult] 21:25:32 :param when: 21:25:32 The phase in which the function is called. 21:25:32 :param reraise: 21:25:32 Exception or exceptions that shall propagate if raised by the 21:25:32 function, instead of being wrapped in the CallInfo. 21:25:32 """ 21:25:32 excinfo = None 21:25:32 instant = timing.Instant() 21:25:32 try: 21:25:32 > result: TResult | None = func() 21:25:32 ^^^^^^ 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 21:25:32 lambda: runtest_hook(item=item, **kwds), 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_caller.py:197: in __call__ 21:25:32 return self._hookexec( 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:183: in _hookexec 21:25:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:871: in pytest_runtest_setup 21:25:32 yield 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:901: in pytest_runtest_setup 21:25:32 return (yield) 21:25:32 ^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 21:25:32 item.session._setupstate.setup(item) 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 21:25:32 col.setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:246: in setup 21:25:32 super().setup() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1801: in setup 21:25:32 self._request._fillfixtures() 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:877: in _fillfixtures 21:25:32 item.funcargs[argname] = self.getfixturevalue(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:701: in getfixturevalue 21:25:32 fixturedef = self._get_active_fixturedef(argname) 21:25:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:797: in _get_active_fixturedef 21:25:32 fixturedef.execute(request=subrequest) 21:25:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 21:25:32 21:25:32 self = 21:25:32 request = > 21:25:32 21:25:32 def execute(self, request: SubRequest) -> FixtureValue: 21:25:32 """Return the value of this fixture, executing it if not cached.""" 21:25:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 21:25:32 # This needs to be done before checking if we have a cached value, since 21:25:32 # if a dependent fixture has their cache invalidated, e.g. due to 21:25:32 # parametrization, they finalize themselves and fixtures depending on it 21:25:32 # (which will likely include this fixture) setting `self.cached_result = None`. 21:25:32 # See #4871 21:25:32 requested_fixtures_that_should_finalize_us = [] 21:25:32 for argname in self.argnames: 21:25:32 fixturedef = request._get_active_fixturedef(argname) 21:25:32 # Saves requested fixtures in a list so we later can add our finalizer 21:25:32 # to them, ensuring that if a requested fixture gets torn down we get torn 21:25:32 # down first. This is generally handled by SetupState, but still currently 21:25:32 # needed when this fixture is not parametrized but depends on a parametrized 21:25:32 # fixture. 21:25:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 21:25:32 21:25:32 # Check for (and return) cached value/exception. 21:25:32 if self.cached_result is not None: 21:25:32 request_cache_key = self.cache_key(request) 21:25:32 cache_key = self.cached_result[1] 21:25:32 try: 21:25:32 # Attempt to make a normal == check: this might fail for objects 21:25:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 21:25:32 cache_hit = bool(request_cache_key == cache_key) 21:25:32 except (ValueError, RuntimeError): 21:25:32 # If the comparison raises, use 'is' as fallback. 21:25:32 cache_hit = request_cache_key is cache_key 21:25:32 21:25:32 if cache_hit: 21:25:32 if self.cached_result[2] is not None: 21:25:32 exc, exc_tb = self.cached_result[2] 21:25:32 raise exc.with_traceback(exc_tb) 21:25:32 else: 21:25:32 return self.cached_result[0] 21:25:32 # We have a previous but differently parametrized fixture instance 21:25:32 # so we need to tear it down before creating a new one. 21:25:32 self.finish(request) 21:25:32 assert self.cached_result is None 21:25:32 21:25:32 # Add finalizer to requested fixtures we saved previously. 21:25:32 # We make sure to do this after checking for cached value to avoid 21:25:32 # adding our finalizer multiple times. (#12135) 21:25:32 finalizer = functools.partial(self.finish, request=request) 21:25:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 21:25:32 parent_fixture.addfinalizer(finalizer) 21:25:32 21:25:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 21:25:32 # which is executed last. 21:25:32 > assert not self._finalizers 21:25:32 ^^^^^^^^^^^^^^^^^^^^ 21:25:32 E AssertionError 21:25:32 21:25:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1290: AssertionError 21:25:32 =========================== short test summary info ============================ 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_01_connect_xpdrA 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_02_connect_xpdrC 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_03_connect_rdmA 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_04_connect_rdmC 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_05_connect_xpdrA_N1_to_roadmA_PP1 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_06_connect_roadmA_PP1_to_xpdrA_N1 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_07_connect_xpdrC_N1_to_roadmC_PP1 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_08_connect_roadmC_PP1_to_xpdrC_N1 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_09_add_omsAttributes_ROADMA_ROADMC 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_10_add_omsAttributes_ROADMC_ROADMA 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_11_create_eth_service1 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_12_get_eth_service1 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_13_change_status_line_port_xpdra 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_14_check_update_portmapping 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_15_check_update_openroadm_topo 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_16_check_update_service1 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_17_restore_status_line_port_xpdra 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_18_check_update_portmapping_ok 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_19_check_update_openroadm_topo_ok 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_20_check_update_service1_ok 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_21_change_status_port_roadma_srg 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_22_check_update_portmapping 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_23_check_update_openroadm_topo 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_24_restore_status_port_roadma_srg 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_25_check_update_portmapping_ok 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_26_check_update_openroadm_topo_ok 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_27_check_update_service1_ok 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_28_change_status_line_port_roadma_deg 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_29_check_update_portmapping 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_30_check_update_openroadm_topo 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_31_restore_status_line_port_roadma_srg 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_32_check_update_portmapping_ok 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_33_check_update_openroadm_topo_ok 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_34_check_update_service1_ok 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_35_change_status_line_port_xpdrc 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_36_check_update_portmapping 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_37_check_update_openroadm_topo 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_38_restore_status_line_port_xpdrc 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_39_check_update_portmapping_ok 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_40_check_update_openroadm_topo_ok 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_41_check_update_service1_ok 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_42_change_status_port_roadma_srg 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_43_check_update_portmapping 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_44_check_update_openroadm_topo 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_45_check_update_service1_ok 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_46_delete_eth_service1 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_47_disconnect_xponders_from_roadm 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_48_disconnect_XPDRA 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_49_disconnect_XPDRC 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_50_disconnect_ROADMA 21:25:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_51_disconnect_ROADMC 21:25:32 51 errors in 108.61s (0:01:48) 21:25:32 tests_hybrid: exit 1 (109.08 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid pid=7351 21:25:35 ..................................... [100%] 21:27:45 43 passed in 193.54s (0:03:13) 21:27:45 tests_hybrid: FAIL ✖ in 1 minute 58.34 seconds 21:27:45 tests200: OK ✔ in 6 minutes 5.61 seconds 21:27:45 tests71: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 21:27:55 tests71: freeze> python -m pip freeze --all 21:27:55 tests71: bcrypt==5.0.0,certifi==2026.10.23,cffi==2.1.1,charset-normalizer==3.5.2,cryptography==50.0.2,dict2xml==1.7.8,idna==3.20,iniconfig==2.3.1,invoke==3.0.3,lxml==6.1.3,netconf-client==3.6.0,packaging==26.3,paramiko==5.1.0,pip==26.3,pluggy==1.7.0,psutil==7.2.2,pycparser==3.12,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.2.0,requests==2.34.2,setuptools==84.2.1,urllib3==2.8.0 21:27:55 tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 21:27:55 using environment variables from ./karaf71.env 21:27:55 pytest -q transportpce_tests/7.1/test01_portmapping.py 21:28:28 ............ [100%] 21:28:41 12 passed in 45.70s 21:28:41 pytest -q transportpce_tests/7.1/test02_otn_renderer.py 21:29:12 .............................................................. [100%] 21:31:24 62 passed in 162.07s (0:02:42) 21:31:24 pytest -q transportpce_tests/7.1/test03_renderer_or_modes.py 21:32:00 ................................................ [100%] 21:33:44 48 passed in 140.24s (0:02:20) 21:33:44 pytest -q transportpce_tests/7.1/test04_renderer_regen_mode.py 21:34:14 ...................... [100%] 21:35:02 22 passed in 77.87s (0:01:17) 21:35:02 buildcontroller: FAIL code 1 (59.53=setup[9.29]+cmd[50.24] seconds) 21:35:02 sims: OK (15.01=setup[11.90]+cmd[3.11] seconds) 21:35:02 testsPCE: FAIL code 1 (188.36=setup[65.17]+cmd[123.19] seconds) 21:35:02 build_karaf_tests221: FAIL code 127 (29.22=setup[11.45]+cmd[17.77] seconds) 21:35:02 tests_tapi: FAIL code 1 (205.83=setup[98.29]+cmd[107.54] seconds) 21:35:02 tests221: FAIL code 1 (113.90=setup[8.00]+cmd[105.90] seconds) 21:35:02 build_karaf_tests71: OK (59.61=setup[11.59]+cmd[48.02] seconds) 21:35:02 tests71: OK (437.24=setup[9.99]+cmd[427.25] seconds) 21:35:02 build_karaf_tests200: OK (64.08=setup[11.47]+cmd[52.60] seconds) 21:35:02 tests200: OK (365.61=setup[7.98]+cmd[357.63] seconds) 21:35:02 tests_hybrid: FAIL code 1 (118.34=setup[9.26]+cmd[109.08] seconds) 21:35:02 buildlighty: FAIL code 9 (29.28=setup[13.43]+cmd[15.85] seconds) 21:35:02 docs: OK (24.27=setup[21.04]+cmd[3.23] seconds) 21:35:02 docs-linkcheck: OK (25.98=setup[20.89]+cmd[5.09] seconds) 21:35:02 checkbashisms: OK (3.18=setup[1.98]+cmd[0.00,0.04,1.17] seconds) 21:35:02 pre-commit: OK (87.18=setup[3.70]+cmd[0.00,0.00,63.54,19.93] seconds) 21:35:02 pylint: OK (23.24=setup[3.57]+cmd[19.67] seconds) 21:35:02 evaluation failed :( (1320.72 seconds) 21:35:02 + tox_status=1 21:35:02 + echo '---> Completed tox runs' 21:35:02 ---> Completed tox runs 21:35:02 + for i in .tox/*/log 21:35:02 ++ echo .tox/build_karaf_tests200/log 21:35:02 ++ awk -F/ '{print $2}' 21:35:03 + tox_env=build_karaf_tests200 21:35:03 + cp -r .tox/build_karaf_tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests200 21:35:03 + for i in .tox/*/log 21:35:03 ++ echo .tox/build_karaf_tests221/log 21:35:03 ++ awk -F/ '{print $2}' 21:35:03 + tox_env=build_karaf_tests221 21:35:03 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests221 21:35:03 + for i in .tox/*/log 21:35:03 ++ echo .tox/build_karaf_tests71/log 21:35:03 ++ awk -F/ '{print $2}' 21:35:03 + tox_env=build_karaf_tests71 21:35:03 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests71 21:35:03 + for i in .tox/*/log 21:35:03 ++ echo .tox/buildcontroller/log 21:35:03 ++ awk -F/ '{print $2}' 21:35:03 + tox_env=buildcontroller 21:35:03 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildcontroller 21:35:03 + for i in .tox/*/log 21:35:03 ++ awk -F/ '{print $2}' 21:35:03 ++ echo .tox/buildlighty/log 21:35:03 + tox_env=buildlighty 21:35:03 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildlighty 21:35:03 + for i in .tox/*/log 21:35:03 ++ echo .tox/checkbashisms/log 21:35:03 ++ awk -F/ '{print $2}' 21:35:03 + tox_env=checkbashisms 21:35:03 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/checkbashisms 21:35:03 + for i in .tox/*/log 21:35:03 ++ echo .tox/docs-linkcheck/log 21:35:03 ++ awk -F/ '{print $2}' 21:35:03 + tox_env=docs-linkcheck 21:35:03 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs-linkcheck 21:35:03 + for i in .tox/*/log 21:35:03 ++ echo .tox/docs/log 21:35:03 ++ awk -F/ '{print $2}' 21:35:03 + tox_env=docs 21:35:03 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs 21:35:03 + for i in .tox/*/log 21:35:03 ++ echo .tox/pre-commit/log 21:35:03 ++ awk -F/ '{print $2}' 21:35:03 + tox_env=pre-commit 21:35:03 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pre-commit 21:35:03 + for i in .tox/*/log 21:35:03 ++ echo .tox/pylint/log 21:35:03 ++ awk -F/ '{print $2}' 21:35:03 + tox_env=pylint 21:35:03 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pylint 21:35:03 + for i in .tox/*/log 21:35:03 ++ echo .tox/sims/log 21:35:03 ++ awk -F/ '{print $2}' 21:35:03 + tox_env=sims 21:35:03 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/sims 21:35:03 + for i in .tox/*/log 21:35:03 ++ echo .tox/tests200/log 21:35:03 ++ awk -F/ '{print $2}' 21:35:03 + tox_env=tests200 21:35:03 + cp -r .tox/tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests200 21:35:03 + for i in .tox/*/log 21:35:03 ++ awk -F/ '{print $2}' 21:35:03 ++ echo .tox/tests221/log 21:35:03 + tox_env=tests221 21:35:03 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests221 21:35:03 + for i in .tox/*/log 21:35:03 ++ echo .tox/tests71/log 21:35:03 ++ awk -F/ '{print $2}' 21:35:03 + tox_env=tests71 21:35:03 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests71 21:35:03 + for i in .tox/*/log 21:35:03 ++ echo .tox/testsPCE/log 21:35:03 ++ awk -F/ '{print $2}' 21:35:03 + tox_env=testsPCE 21:35:03 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/testsPCE 21:35:03 + for i in .tox/*/log 21:35:03 ++ echo .tox/tests_hybrid/log 21:35:03 ++ awk -F/ '{print $2}' 21:35:03 + tox_env=tests_hybrid 21:35:03 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_hybrid 21:35:03 + for i in .tox/*/log 21:35:03 ++ echo .tox/tests_tapi/log 21:35:03 ++ awk -F/ '{print $2}' 21:35:03 + tox_env=tests_tapi 21:35:03 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_tapi 21:35:03 + DOC_DIR=docs/_build/html 21:35:03 + [[ -d docs/_build/html ]] 21:35:03 + echo '---> Archiving generated docs' 21:35:03 ---> Archiving generated docs 21:35:03 + mv docs/_build/html /w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 21:35:03 + echo '---> tox-run.sh ends' 21:35:03 ---> tox-run.sh ends 21:35:03 + test 1 -eq 0 21:35:03 + exit 1 21:35:03 ++ '[' 1 = 1 ']' 21:35:03 ++ '[' -x /usr/bin/clear_console ']' 21:35:03 ++ /usr/bin/clear_console -q 21:35:03 Build step 'Execute shell' marked build as failure 21:35:03 $ ssh-agent -k 21:35:03 unset SSH_AUTH_SOCK; 21:35:03 unset SSH_AGENT_PID; 21:35:03 echo Agent pid 1570 killed; 21:35:03 [ssh-agent] Stopped. 21:35:03 [PostBuildScript] - [INFO] Executing post build scripts. 21:35:03 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins14022884376527854634.sh 21:35:03 ---> sysstat.sh 21:35:03 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins17787242908930730414.sh 21:35:03 ---> package-listing.sh 21:35:03 + '[' -f /etc/os-release ']' 21:35:03 + . /etc/os-release 21:35:03 ++ PRETTY_NAME='Ubuntu 22.04.5 LTS' 21:35:03 ++ NAME=Ubuntu 21:35:03 ++ VERSION_ID=22.04 21:35:03 ++ VERSION='22.04.5 LTS (Jammy Jellyfish)' 21:35:03 ++ VERSION_CODENAME=jammy 21:35:03 ++ ID=ubuntu 21:35:03 ++ ID_LIKE=debian 21:35:03 ++ HOME_URL=https://www.ubuntu.com/ 21:35:03 ++ SUPPORT_URL=https://help.ubuntu.com/ 21:35:03 ++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/ 21:35:03 ++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy 21:35:03 ++ UBUNTU_CODENAME=jammy 21:35:03 + case " ${ID:-} ${ID_LIKE:-} " in 21:35:03 + OS_FAMILY=debian 21:35:03 + workspace=/w/workspace/transportpce-tox-verify-transportpce-master 21:35:03 + START_PACKAGES=/tmp/packages_start.txt 21:35:03 + END_PACKAGES=/tmp/packages_end.txt 21:35:03 + DIFF_PACKAGES=/tmp/packages_diff.txt 21:35:03 + PACKAGES=/tmp/packages_start.txt 21:35:03 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 21:35:03 + PACKAGES=/tmp/packages_end.txt 21:35:03 + case "${OS_FAMILY}" in 21:35:03 + dpkg -l 21:35:03 + grep '^ii' 21:35:03 + '[' -f /tmp/packages_start.txt ']' 21:35:03 + '[' -f /tmp/packages_end.txt ']' 21:35:03 + diff /tmp/packages_start.txt /tmp/packages_end.txt 21:35:03 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 21:35:03 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 21:35:03 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 21:35:03 + exit 0 21:35:03 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins4860983567942311967.sh 21:35:03 ---> capture-instance-metadata.sh 21:35:03 Setup pyenv: 21:35:03 system 21:35:03 3.8.20 21:35:03 3.9.20 21:35:03 3.10.15 21:35:03 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 21:35:03 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-51kJ from file:/tmp/.os_lf_venv 21:35:03 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 21:35:06 lf-activate-venv(): INFO: Installing additional packages: lftools 21:35:27 lf-activate-venv(): INFO: Adding /tmp/venv-51kJ/bin to PATH 21:35:27 INFO: Running in OpenStack, capturing instance metadata 21:35:27 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins8199393033950579786.sh 21:35:27 provisioning config files... 21:35:28 Could not find credentials [logs] for transportpce-tox-verify-transportpce-master #6457 21:35:28 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-transportpce-master@tmp/config15232118402792227022tmp 21:35:28 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 21:35:28 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 21:35:28 provisioning config files... 21:35:28 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 21:35:28 [EnvInject] - Injecting environment variables from a build step. 21:35:28 [EnvInject] - Injecting as environment variables the properties content 21:35:28 SERVER_ID=logs 21:35:28 21:35:28 [EnvInject] - Variables injected successfully. 21:35:28 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins13417145486775340608.sh 21:35:28 ---> create-netrc.sh 21:35:28 WARN: Log server credential not found. 21:35:28 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins9777908073330575511.sh 21:35:28 ---> python-tools-install.sh 21:35:28 Setup pyenv: 21:35:28 system 21:35:28 3.8.20 21:35:28 3.9.20 21:35:28 3.10.15 21:35:28 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 21:35:29 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-51kJ from file:/tmp/.os_lf_venv 21:35:29 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 21:35:31 lf-activate-venv(): INFO: Installing additional packages: lftools 21:35:42 lf-activate-venv(): INFO: Adding /tmp/venv-51kJ/bin to PATH 21:35:42 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins8574134947396767063.sh 21:35:42 ---> uv-install.sh 21:35:42 uv 0.13.7 is already installed 21:35:42 uvx 0.13.7 (x86_64-unknown-linux-gnu) 21:35:42 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins2856597638054597207.sh 21:35:42 ---> sudo-logs.sh 21:35:42 Archiving 'sudo' log.. 21:35:42 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins12687510124395832685.sh 21:35:42 ---> job-cost.sh 21:35:42 INFO: Activating Python virtual environment... 21:35:42 Setup pyenv: 21:35:42 system 21:35:42 3.8.20 21:35:42 3.9.20 21:35:42 3.10.15 21:35:42 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 21:35:42 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-51kJ from file:/tmp/.os_lf_venv 21:35:42 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 21:35:44 lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 21:35:54 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. 21:35:54 botocore 1.43.124 requires python-dateutil<3.0.0,>=2.1, but you have python-dateutil 4.0.0 which is incompatible. 21:35:54 lf-activate-venv(): INFO: Adding /tmp/venv-51kJ/bin to PATH 21:35:54 INFO: No stack-cost file found 21:35:54 INFO: Instance uptime: 1521s 21:35:54 INFO: Fetching instance metadata (attempt 1 of 3)... 21:35:54 DEBUG: URL: http://169.254.169.254/latest/meta-data/instance-type 21:35:54 INFO: Successfully fetched instance metadata 21:35:54 INFO: Instance type: v3-standard-4 21:35:54 INFO: Retrieving pricing info for: v3-standard-4 21:35:54 INFO: Fetching Vexxhost pricing API (attempt 1 of 3)... 21:35:54 DEBUG: URL: https://pricing.vexxhost.net/v1/pricing/v3-standard-4/cost?seconds=1521 21:35:55 INFO: Successfully fetched Vexxhost pricing API 21:35:55 INFO: Retrieved cost: 0.11 21:35:55 INFO: Retrieved resource: v3-standard-4 21:35:55 INFO: Creating archive directory: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost 21:35:55 INFO: Archiving costs to: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost.csv 21:35:55 INFO: Successfully archived job cost data 21:35:55 DEBUG: Cost data: transportpce-tox-verify-transportpce-master,6457,2026-11-04 21:35:55,v3-standard-4,1521,0.11,0.00,FAILURE 21:35:55 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins14457870645245793944.sh 21:35:55 ---> logs-deploy.sh 21:35:55 Setup pyenv: 21:35:55 system 21:35:55 3.8.20 21:35:55 3.9.20 21:35:55 3.10.15 21:35:55 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 21:35:55 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-51kJ from file:/tmp/.os_lf_venv 21:35:55 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 21:35:57 lf-activate-venv(): INFO: Installing additional packages: lftools urllib3~=1.26.15 21:36:07 lf-activate-venv(): INFO: Adding /tmp/venv-51kJ/bin to PATH 21:36:07 WARNING: Nexus logging server not set 21:36:07 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-transportpce-master/6457/ 21:36:07 INFO: archiving logs to S3 21:36:08 ---> uname -a: 21:36:08 Linux prd-ubuntu2204-docker-4c-16g-68571 5.15.0-202-generic #212-Ubuntu SMP Thu Oct 15 16:49:38 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux 21:36:08 21:36:08 21:36:08 ---> lscpu: 21:36:08 Architecture: x86_64 21:36:08 CPU op-mode(s): 32-bit, 64-bit 21:36:08 Address sizes: 40 bits physical, 48 bits virtual 21:36:08 Byte Order: Little Endian 21:36:08 CPU(s): 4 21:36:08 On-line CPU(s) list: 0-3 21:36:08 Vendor ID: AuthenticAMD 21:36:08 Model name: AMD EPYC-Rome Processor 21:36:08 CPU family: 23 21:36:08 Model: 49 21:36:08 Thread(s) per core: 1 21:36:08 Core(s) per socket: 1 21:36:08 Socket(s): 4 21:36:08 Stepping: 0 21:36:08 BogoMIPS: 5599.99 21:36:08 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 21:36:08 Virtualization: AMD-V 21:36:08 Hypervisor vendor: KVM 21:36:08 Virtualization type: full 21:36:08 L1d cache: 128 KiB (4 instances) 21:36:08 L1i cache: 128 KiB (4 instances) 21:36:08 L2 cache: 2 MiB (4 instances) 21:36:08 L3 cache: 64 MiB (4 instances) 21:36:08 NUMA node(s): 1 21:36:08 NUMA node0 CPU(s): 0-3 21:36:08 Vulnerability Gather data sampling: Not affected 21:36:08 Vulnerability Indirect target selection: Not affected 21:36:08 Vulnerability Itlb multihit: Not affected 21:36:08 Vulnerability L1tf: Not affected 21:36:08 Vulnerability Mds: Not affected 21:36:08 Vulnerability Meltdown: Not affected 21:36:08 Vulnerability Mmio stale data: Not affected 21:36:08 Vulnerability Reg file data sampling: Not affected 21:36:08 Vulnerability Retbleed: Mitigation; untrained return thunk; SMT disabled 21:36:08 Vulnerability Spec rstack overflow: Mitigation; SMT disabled 21:36:08 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 21:36:08 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 21:36:08 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 21:36:08 Vulnerability Srbds: Not affected 21:36:08 Vulnerability Tsa: Not affected 21:36:08 Vulnerability Tsx async abort: Not affected 21:36:08 Vulnerability Vmscape: Not affected 21:36:08 21:36:08 21:36:08 ---> nproc: 21:36:08 4 21:36:08 21:36:08 21:36:08 ---> df -h: 21:36:08 Filesystem Size Used Avail Use% Mounted on 21:36:08 tmpfs 1.6G 1.1M 1.6G 1% /run 21:36:08 /dev/vda1 78G 14G 64G 18% / 21:36:08 tmpfs 7.9G 0 7.9G 0% /dev/shm 21:36:08 tmpfs 5.0M 0 5.0M 0% /run/lock 21:36:08 /dev/vda15 105M 6.1M 99M 6% /boot/efi 21:36:08 tmpfs 1.6G 4.0K 1.6G 1% /run/user/1001 21:36:08 21:36:08 21:36:08 ---> free -m: 21:36:08 total used free shared buff/cache available 21:36:08 Mem: 15989 741 6686 4 8561 14904 21:36:08 Swap: 1023 0 1023 21:36:08 21:36:08 21:36:08 ---> ip addr: 21:36:08 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 21:36:08 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 21:36:08 inet 127.0.0.1/8 scope host lo 21:36:08 valid_lft forever preferred_lft forever 21:36:08 inet6 ::1/128 scope host 21:36:08 valid_lft forever preferred_lft forever 21:36:08 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 21:36:08 link/ether fa:16:3e:9a:42:6b brd ff:ff:ff:ff:ff:ff 21:36:08 altname enp0s3 21:36:08 inet 10.30.171.32/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 21:36:08 valid_lft 84873sec preferred_lft 84873sec 21:36:08 inet6 fe80::f816:3eff:fe9a:426b/64 scope link 21:36:08 valid_lft forever preferred_lft forever 21:36:08 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 21:36:08 link/ether 8a:2f:3e:b9:85:ff brd ff:ff:ff:ff:ff:ff 21:36:08 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 21:36:08 valid_lft forever preferred_lft forever 21:36:08 inet6 fe80::882f:3eff:feb9:85ff/64 scope link 21:36:08 valid_lft forever preferred_lft forever 21:36:08 21:36:08 21:36:08 ---> sar -b -r -n DEV: 21:36:08 Linux 5.15.0-202-generic (prd-ubuntu2204-docker-4c-16g-68571) 11/04/26 _x86_64_ (4 CPU) 21:36:08 21:36:08 21:10:45 LINUX RESTART (4 CPU) 21:36:08 21:36:08 21:20:01 tps rtps wtps dtps bread/s bwrtn/s bdscd/s 21:36:08 21:30:02 28.04 1.28 25.33 1.42 47.58 3072.67 1561.93 21:36:08 Average: 28.04 1.28 25.33 1.42 47.58 3072.67 1561.93 21:36:08 21:36:08 21:20:01 kbmemfree kbavail kbmemused %memused kbbuffers kbcached kbcommit %commit kbactive kbinact kbdirty 21:36:08 21:30:02 5200080 13557672 2372680 14.49 238576 7957812 3106936 17.83 1484500 8978560 284 21:36:08 Average: 5200080 13557672 2372680 14.49 238576 7957812 3106936 17.83 1484500 8978560 284 21:36:08 21:36:08 21:20:01 IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s %ifutil 21:36:08 21:30:02 lo 10.76 10.76 11.78 11.78 0.00 0.00 0.00 0.00 21:36:08 21:30:02 ens3 2.75 2.14 0.77 2.05 0.00 0.00 0.00 0.00 21:36:08 21:30:02 docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 21:36:08 Average: lo 10.76 10.76 11.78 11.78 0.00 0.00 0.00 0.00 21:36:08 Average: ens3 2.75 2.14 0.77 2.05 0.00 0.00 0.00 0.00 21:36:08 Average: docker0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 21:36:08 21:36:08 21:36:08 ---> sar -P ALL: 21:36:08 Linux 5.15.0-202-generic (prd-ubuntu2204-docker-4c-16g-68571) 11/04/26 _x86_64_ (4 CPU) 21:36:08 21:36:08 21:10:45 LINUX RESTART (4 CPU) 21:36:08 21:36:08 21:20:01 CPU %user %nice %system %iowait %steal %idle 21:36:08 21:30:02 all 29.09 0.00 1.10 0.15 0.03 69.64 21:36:08 21:30:02 0 28.64 0.00 1.07 0.31 0.03 69.95 21:36:08 21:30:02 1 30.93 0.00 1.22 0.15 0.03 67.68 21:36:08 21:30:02 2 28.78 0.00 1.03 0.08 0.03 70.08 21:36:08 21:30:02 3 28.00 0.00 1.07 0.06 0.02 70.85 21:36:08 Average: all 29.09 0.00 1.10 0.15 0.03 69.64 21:36:08 Average: 0 28.64 0.00 1.07 0.31 0.03 69.95 21:36:08 Average: 1 30.93 0.00 1.22 0.15 0.03 67.68 21:36:08 Average: 2 28.78 0.00 1.03 0.08 0.03 70.08 21:36:08 Average: 3 28.00 0.00 1.07 0.06 0.02 70.85 21:36:08 21:36:08 21:36:08