13:56:15 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/124847 13:56:15 Running as SYSTEM 13:56:15 [EnvInject] - Loading node environment variables. 13:56:15 Building remotely on prd-ubuntu2204-docker-4c-16g-64903 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-transportpce-master 13:56:15 [ssh-agent] Looking for ssh-agent implementation... 13:56:16 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 13:56:16 $ ssh-agent 13:56:16 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXw7WQku/agent.1569 13:56:16 SSH_AGENT_PID=1571 13:56:16 [ssh-agent] Started. 13:56:16 Running ssh-add (command line suppressed) 13:56:16 Identity added: /w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_2663697239902693432.key (/w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_2663697239902693432.key) 13:56:16 [ssh-agent] Using credentials jenkins (jenkins-ssh) 13:56:16 The recommended git tool is: NONE 13:56:18 using credential jenkins-ssh 13:56:18 Wiping out workspace first. 13:56:18 Cloning the remote Git repository 13:56:18 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 13:56:18 > git init /w/workspace/transportpce-tox-verify-transportpce-master # timeout=10 13:56:18 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 13:56:18 > git --version # timeout=10 13:56:18 > git --version # 'git version 2.34.1' 13:56:18 using GIT_SSH to set credentials jenkins-ssh 13:56:18 Verifying host key using known hosts file, will automatically accept unseen keys 13:56:18 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 13:56:22 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 13:56:22 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 13:56:22 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 13:56:22 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 13:56:22 using GIT_SSH to set credentials jenkins-ssh 13:56:22 Verifying host key using known hosts file, will automatically accept unseen keys 13:56:22 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/47/124847/5 # timeout=10 13:56:23 > git rev-parse 83ffa6eb102fcd794a01400f123dff7b30cd4f0b^{commit} # timeout=10 13:56:23 JENKINS-19022: warning: possible memory leak due to Git plugin usage; see: https://plugins.jenkins.io/git/#remove-git-plugin-buildsbybranch-builddata-script 13:56:23 Checking out Revision 83ffa6eb102fcd794a01400f123dff7b30cd4f0b (refs/changes/47/124847/5) 13:56:23 > git config core.sparsecheckout # timeout=10 13:56:23 > git checkout -f 83ffa6eb102fcd794a01400f123dff7b30cd4f0b # timeout=10 13:56:26 Commit message: "common: fix EventSubscriber thread-safety bugs" 13:56:26 > git rev-parse FETCH_HEAD^{commit} # timeout=10 13:56:26 > git rev-list --no-walk bfd2c47e37d47f66796eaf948699644129552e69 # timeout=10 13:56:26 > git remote # timeout=10 13:56:26 > git submodule init # timeout=10 13:56:26 > git submodule sync # timeout=10 13:56:26 > git config --get remote.origin.url # timeout=10 13:56:26 > git submodule init # timeout=10 13:56:26 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 13:56:26 ERROR: No submodules found. 13:56:27 provisioning config files... 13:56:27 copy managed file [npmrc] to file:/home/jenkins/.npmrc 13:56:27 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 13:56:27 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins16955661569714819957.sh 13:56:27 ---> python-tools-install.sh 13:56:27 Setup pyenv: 13:56:27 * system (set by /opt/pyenv/version) 13:56:27 * 3.8.20 (set by /opt/pyenv/version) 13:56:27 * 3.9.20 (set by /opt/pyenv/version) 13:56:27 3.10.15 13:56:27 3.11.10 13:56:32 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-vrMh 13:56:32 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 13:56:32 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 13:56:36 lf-activate-venv(): INFO: Installing additional packages: lftools 13:57:00 lf-activate-venv(): INFO: Adding /tmp/venv-vrMh/bin to PATH 13:57:00 Generating Requirements File 13:57:25 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. 13:57:25 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 13:57:26 Python 3.11.10 13:57:26 pip 26.2.1 from /tmp/venv-vrMh/lib/python3.11/site-packages/pip (python 3.11) 13:57:26 aiohappyeyeballs==2.7.1 13:57:26 aiohttp==3.14.5 13:57:26 aiosignal==1.4.0 13:57:26 appdirs==1.4.4 13:57:26 argcomplete==3.7.2 13:57:26 aspy.yaml==1.3.0 13:57:26 attrs==26.1.0 13:57:26 autopage==0.6.0 13:57:26 beautifulsoup4==4.15.0 13:57:26 boto3==1.43.112 13:57:26 botocore==1.43.112 13:57:26 bs4==0.0.2 13:57:26 certifi==2026.7.22 13:57:26 cffi==2.1.1 13:57:26 cfgv==3.5.0 13:57:26 chardet==7.6.0 13:57:26 charset-normalizer==3.5.2 13:57:26 click==8.5.0 13:57:26 cliff==4.16.0 13:57:26 cmd2==4.3.0 13:57:26 cryptography==3.3.2 13:57:26 debtcollector==3.1.0 13:57:26 decorator==5.3.1 13:57:26 defusedxml==0.7.1 13:57:26 Deprecated==1.3.1 13:57:26 distlib==0.4.3 13:57:26 dnspython==2.9.0 13:57:26 docker==7.2.0 13:57:26 dogpile.cache==1.5.0 13:57:26 durationpy==0.11 13:57:26 email-validator==2.3.0 13:57:26 filelock==4.1.1 13:57:26 frozenlist==1.8.0 13:57:26 future==1.0.0 13:57:26 gitdb==4.0.12 13:57:26 GitPython==3.2.0 13:57:26 httplib2==0.30.2 13:57:26 identify==2.6.20 13:57:26 idna==3.20 13:57:26 importlib-resources==1.5.0 13:57:26 iso8601==2.1.0 13:57:26 Jinja2==3.1.6 13:57:26 jmespath==1.1.0 13:57:26 jsonpatch==1.35 13:57:26 jsonpointer==3.2.1 13:57:26 jsonschema==4.26.0 13:57:26 jsonschema-specifications==2025.9.1 13:57:26 keystoneauth1==5.18.1 13:57:26 kubernetes==36.0.3 13:57:26 lftools==0.37.23 13:57:26 lxml==6.1.3 13:57:26 markdown-it-py==4.2.0 13:57:26 MarkupSafe==3.0.4 13:57:26 mdurl==0.1.2 13:57:26 msgpack==1.2.3 13:57:26 multi_key_dict==2.0.3 13:57:26 multidict==7.1.0 13:57:26 munch==4.0.0 13:57:26 netaddr==1.3.0 13:57:26 niet==1.4.2 13:57:26 nodeenv==1.11.0 13:57:26 oauth2client==4.1.3 13:57:26 oauthlib==4.0.0 13:57:26 openstacksdk==4.21.0 13:57:26 os-service-types==1.9.0 13:57:26 osc-lib==4.7.0 13:57:26 oslo.config==10.7.0 13:57:26 oslo.context==6.5.0 13:57:26 oslo.i18n==6.9.0 13:57:26 oslo.log==8.3.2 13:57:26 oslo.serialization==5.11.0 13:57:26 oslo.utils==10.2.0 13:57:26 packaging==26.3 13:57:26 pbr==7.1.3 13:57:26 platformdirs==4.13.0 13:57:26 prettytable==3.18.0 13:57:26 prompt_toolkit==3.0.53 13:57:26 propcache==0.5.4 13:57:26 psutil==7.2.2 13:57:26 pyasn1==0.6.4 13:57:26 pyasn1_modules==0.4.2 13:57:26 pycparser==3.11 13:57:26 pygerrit2==2.0.15 13:57:26 PyGithub==2.10.0 13:57:26 Pygments==2.21.0 13:57:26 PyJWT==2.15.1 13:57:26 PyNaCl==1.6.2 13:57:26 pyparsing==2.4.7 13:57:26 pyperclip==1.11.0 13:57:26 pyrsistent==0.20.0 13:57:26 python-dateutil==2.9.0.post0 13:57:26 python-discovery==1.6.2 13:57:26 python-heatclient==5.3.0 13:57:26 python-jenkins==1.8.3 13:57:26 python-keystoneclient==6.0.0 13:57:26 python-magnumclient==5.0.0 13:57:26 python-manilaclient==6.3.0 13:57:26 python-openstackclient==10.4.0 13:57:26 python-swiftclient==4.11.0 13:57:26 PyYAML==6.0.3 13:57:26 referencing==0.37.0 13:57:26 requests==2.34.2 13:57:26 requests-oauthlib==2.0.0 13:57:26 rfc3986==2.0.0 13:57:26 rich==15.0.0 13:57:26 rich-argparse==1.8.0 13:57:26 rpds-py==2026.9.1 13:57:26 rsa==4.9.1 13:57:26 ruamel.yaml==0.19.1 13:57:26 ruamel.yaml.clib==0.2.15 13:57:26 s3transfer==0.19.2 13:57:26 simplejson==4.2.0 13:57:26 six==1.17.0 13:57:26 smmap==5.0.3 13:57:26 soupsieve==3.0.3 13:57:26 stevedore==5.9.1 13:57:26 tabulate==0.10.0 13:57:26 toml==0.10.2 13:57:26 tomlkit==0.15.1 13:57:26 tqdm==4.70.1 13:57:26 typing_extensions==4.16.0 13:57:26 urllib3==1.26.20 13:57:26 virtualenv==21.14.7 13:57:26 wcwidth==0.9.2 13:57:26 websocket-client==1.9.2 13:57:26 wrapt==2.5.0 13:57:26 xdg==6.0.0 13:57:26 xmltodict==1.0.4 13:57:26 yarl==1.25.1 13:57:26 yq==4.4.5 13:57:26 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins10684750448256591868.sh 13:57:26 ---> uv-install.sh 13:57:26 Installing uv/uvx (latest) using shell installer 13:57:26 2026-10-13 13:57:26 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71300/71300] -> "/tmp/uv-install-78zmjV.sh" [1] 13:57:26 downloading uv 0.13.0 x86_64-unknown-linux-gnu 13:57:27 installing to /home/jenkins/.local/bin 13:57:27 uv 13:57:27 uvx 13:57:27 everything's installed! 13:57:27 13:57:27 To add $HOME/.local/bin to your PATH, either restart your shell or run: 13:57:27 13:57:27 source $HOME/.local/bin/env (sh, bash, zsh) 13:57:27 source $HOME/.local/bin/env.fish (fish) 13:57:27 Adding install location to PATH 13:57:27 ---> Validating uv/uvx install 13:57:27 uvx 0.13.0 (x86_64-unknown-linux-gnu) 13:57:27 [EnvInject] - Injecting environment variables from a build step. 13:57:27 [EnvInject] - Injecting as environment variables the properties content 13:57:27 PYTHON=python3 13:57:27 13:57:27 [EnvInject] - Variables injected successfully. 13:57:27 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins2507928901669747401.sh 13:57:27 ---> tox-install.sh 13:57:27 + source /home/jenkins/lf-env.sh 13:57:27 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 13:57:27 ++ mktemp -d /tmp/venv-XXXX 13:57:27 + lf_venv=/tmp/venv-UzWJ 13:57:27 + local venv_file=/tmp/.os_lf_venv 13:57:27 + local python=python3 13:57:27 + local options 13:57:27 + local set_path=true 13:57:27 + local install_args= 13:57:27 ++ 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 13:57:27 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 13:57:27 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 13:57:27 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 13:57:27 + true 13:57:27 + case $1 in 13:57:27 + venv_file=/tmp/.toxenv 13:57:27 + shift 2 13:57:27 + true 13:57:27 + case $1 in 13:57:27 + shift 13:57:27 + break 13:57:27 + case $python in 13:57:27 + local pkg_list= 13:57:27 + [[ -d /opt/pyenv ]] 13:57:27 + echo 'Setup pyenv:' 13:57:27 Setup pyenv: 13:57:27 + export PYENV_ROOT=/opt/pyenv 13:57:27 + PYENV_ROOT=/opt/pyenv 13:57:27 + 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 13:57:27 + 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 13:57:27 + pyenv versions 13:57:27 system 13:57:27 3.8.20 13:57:27 3.9.20 13:57:27 3.10.15 13:57:27 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 13:57:27 + command -v pyenv 13:57:27 ++ pyenv init - --no-rehash 13:57:27 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 13:57:27 for i in ${!paths[@]}; do 13:57:27 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 13:57:27 fi; done; 13:57:27 echo "${paths[*]}"'\'')" 13:57:27 export PATH="/opt/pyenv/shims:${PATH}" 13:57:27 export PYENV_SHELL=bash 13:57:27 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 13:57:27 pyenv() { 13:57:27 local command 13:57:27 command="${1:-}" 13:57:27 if [ "$#" -gt 0 ]; then 13:57:27 shift 13:57:27 fi 13:57:27 13:57:27 case "$command" in 13:57:27 rehash|shell) 13:57:27 eval "$(pyenv "sh-$command" "$@")" 13:57:27 ;; 13:57:27 *) 13:57:27 command pyenv "$command" "$@" 13:57:27 ;; 13:57:27 esac 13:57:27 }' 13:57:27 +++ bash --norc -ec 'IFS=:; paths=($PATH); 13:57:27 for i in ${!paths[@]}; do 13:57:27 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 13:57:27 fi; done; 13:57:27 echo "${paths[*]}"' 13:57:27 ++ 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 13:57:27 ++ 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 13:57:27 ++ 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 13:57:27 ++ export PYENV_SHELL=bash 13:57:27 ++ PYENV_SHELL=bash 13:57:27 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 13:57:27 +++ complete -F _pyenv pyenv 13:57:27 ++ lf-pyver python3 13:57:27 ++ local py_version_xy=python3 13:57:27 ++ local py_version_xyz= 13:57:27 ++ pyenv versions 13:57:27 ++ local command 13:57:27 ++ command=versions 13:57:27 ++ '[' 1 -gt 0 ']' 13:57:27 ++ shift 13:57:27 ++ case "$command" in 13:57:27 ++ command pyenv versions 13:57:27 ++ sed 's/^[ *]* //' 13:57:27 ++ awk '{ print $1 }' 13:57:27 ++ grep -E '^[0-9.]*[0-9]$' 13:57:28 ++ [[ ! -s /tmp/.pyenv_versions ]] 13:57:28 +++ grep '^3' /tmp/.pyenv_versions 13:57:28 +++ sort -V 13:57:28 +++ tail -n 1 13:57:28 ++ py_version_xyz=3.11.10 13:57:28 ++ [[ -z 3.11.10 ]] 13:57:28 ++ echo 3.11.10 13:57:28 ++ return 0 13:57:28 + pyenv local 3.11.10 13:57:28 + local command 13:57:28 + command=local 13:57:28 + '[' 2 -gt 0 ']' 13:57:28 + shift 13:57:28 + case "$command" in 13:57:28 + command pyenv local 3.11.10 13:57:28 + for arg in "$@" 13:57:28 + case $arg in 13:57:28 + pkg_list+='tox ' 13:57:28 + for arg in "$@" 13:57:28 + case $arg in 13:57:28 + pkg_list+='virtualenv ' 13:57:28 + for arg in "$@" 13:57:28 + case $arg in 13:57:28 + pkg_list+='urllib3~=1.26.15 ' 13:57:28 + [[ -f /tmp/.toxenv ]] 13:57:28 + [[ ! -f /tmp/.toxenv ]] 13:57:28 + [[ -n '' ]] 13:57:28 + python3 -m venv /tmp/venv-UzWJ 13:57:32 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-UzWJ' 13:57:32 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-UzWJ 13:57:32 + echo /tmp/venv-UzWJ 13:57:32 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 13:57:32 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 13:57:32 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 13:57:32 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 13:57:32 + local 'pip_opts=--upgrade --quiet' 13:57:32 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 13:57:32 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 13:57:32 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 13:57:32 + [[ -n '' ]] 13:57:32 + [[ -n '' ]] 13:57:32 + lf-venv-pip-install /tmp/venv-UzWJ/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 13:57:32 + local venv_python=/tmp/venv-UzWJ/bin/python3 13:57:32 + shift 13:57:32 + local upstream=https://pypi.org/simple 13:57:32 + /tmp/venv-UzWJ/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 13:57:35 + return 0 13:57:35 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 13:57:35 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 13:57:35 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 13:57:35 + lf-venv-pip-install /tmp/venv-UzWJ/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 13:57:35 + local venv_python=/tmp/venv-UzWJ/bin/python3 13:57:35 + shift 13:57:35 + local upstream=https://pypi.org/simple 13:57:35 + /tmp/venv-UzWJ/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 13:57:37 + return 0 13:57:37 + type python3 13:57:37 + true 13:57:37 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-UzWJ/bin to PATH' 13:57:37 lf-activate-venv(): INFO: Adding /tmp/venv-UzWJ/bin to PATH 13:57:37 + PATH=/tmp/venv-UzWJ/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 13:57:37 + return 0 13:57:37 + python3 --version 13:57:37 Python 3.11.10 13:57:37 + python3 -m pip --version 13:57:37 pip 26.2.1 from /tmp/venv-UzWJ/lib/python3.11/site-packages/pip (python 3.11) 13:57:37 + python3 -m pip freeze 13:57:37 cachetools==7.2.1 13:57:37 colorama==0.4.6 13:57:37 distlib==0.4.3 13:57:37 filelock==4.1.1 13:57:37 packaging==26.3 13:57:37 platformdirs==4.13.0 13:57:37 pluggy==1.6.0 13:57:37 pyproject-api==1.11.5 13:57:37 python-discovery==1.6.2 13:57:37 tomli_w==1.2.0 13:57:37 tox==4.65.4 13:57:37 typing_extensions==4.16.0 13:57:37 urllib3==1.26.20 13:57:37 virtualenv==21.14.7 13:57:37 [transportpce-tox-verify-transportpce-master] $ /bin/sh -xe /tmp/jenkins7445560218819965362.sh 13:57:37 [EnvInject] - Injecting environment variables from a build step. 13:57:37 [EnvInject] - Injecting as environment variables the properties content 13:57:37 PARALLEL=True 13:57:37 13:57:37 [EnvInject] - Variables injected successfully. 13:57:37 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins1299330420185931083.sh 13:57:37 ---> tox-run.sh 13:57:37 + 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 13:57:37 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 13:57:37 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 13:57:37 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 13:57:37 + cd /w/workspace/transportpce-tox-verify-transportpce-master/. 13:57:37 + source /home/jenkins/lf-env.sh 13:57:37 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 13:57:37 ++ mktemp -d /tmp/venv-XXXX 13:57:37 + lf_venv=/tmp/venv-QgEC 13:57:37 + local venv_file=/tmp/.os_lf_venv 13:57:37 + local python=python3 13:57:37 + local options 13:57:37 + local set_path=true 13:57:37 + local install_args= 13:57:37 ++ 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 13:57:37 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 13:57:37 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 13:57:37 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 13:57:37 + true 13:57:37 + case $1 in 13:57:37 + venv_file=/tmp/.toxenv 13:57:37 + shift 2 13:57:37 + true 13:57:37 + case $1 in 13:57:37 + shift 13:57:37 + break 13:57:37 + case $python in 13:57:37 + local pkg_list= 13:57:37 + [[ -d /opt/pyenv ]] 13:57:37 + echo 'Setup pyenv:' 13:57:37 Setup pyenv: 13:57:37 + export PYENV_ROOT=/opt/pyenv 13:57:37 + PYENV_ROOT=/opt/pyenv 13:57:37 + 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 13:57:37 + 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 13:57:37 + pyenv versions 13:57:37 system 13:57:37 3.8.20 13:57:37 3.9.20 13:57:37 3.10.15 13:57:38 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 13:57:38 + command -v pyenv 13:57:38 ++ pyenv init - --no-rehash 13:57:38 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 13:57:38 for i in ${!paths[@]}; do 13:57:38 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 13:57:38 fi; done; 13:57:38 echo "${paths[*]}"'\'')" 13:57:38 export PATH="/opt/pyenv/shims:${PATH}" 13:57:38 export PYENV_SHELL=bash 13:57:38 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 13:57:38 pyenv() { 13:57:38 local command 13:57:38 command="${1:-}" 13:57:38 if [ "$#" -gt 0 ]; then 13:57:38 shift 13:57:38 fi 13:57:38 13:57:38 case "$command" in 13:57:38 rehash|shell) 13:57:38 eval "$(pyenv "sh-$command" "$@")" 13:57:38 ;; 13:57:38 *) 13:57:38 command pyenv "$command" "$@" 13:57:38 ;; 13:57:38 esac 13:57:38 }' 13:57:38 +++ bash --norc -ec 'IFS=:; paths=($PATH); 13:57:38 for i in ${!paths[@]}; do 13:57:38 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 13:57:38 fi; done; 13:57:38 echo "${paths[*]}"' 13:57:38 ++ 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 13:57:38 ++ 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 13:57:38 ++ 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 13:57:38 ++ export PYENV_SHELL=bash 13:57:38 ++ PYENV_SHELL=bash 13:57:38 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 13:57:38 +++ complete -F _pyenv pyenv 13:57:38 ++ lf-pyver python3 13:57:38 ++ local py_version_xy=python3 13:57:38 ++ local py_version_xyz= 13:57:38 ++ pyenv versions 13:57:38 ++ local command 13:57:38 ++ sed 's/^[ *]* //' 13:57:38 ++ command=versions 13:57:38 ++ '[' 1 -gt 0 ']' 13:57:38 ++ shift 13:57:38 ++ case "$command" in 13:57:38 ++ command pyenv versions 13:57:38 ++ grep -E '^[0-9.]*[0-9]$' 13:57:38 ++ awk '{ print $1 }' 13:57:38 ++ [[ ! -s /tmp/.pyenv_versions ]] 13:57:38 +++ sort -V 13:57:38 +++ tail -n 1 13:57:38 +++ grep '^3' /tmp/.pyenv_versions 13:57:38 ++ py_version_xyz=3.11.10 13:57:38 ++ [[ -z 3.11.10 ]] 13:57:38 ++ echo 3.11.10 13:57:38 ++ return 0 13:57:38 + pyenv local 3.11.10 13:57:38 + local command 13:57:38 + command=local 13:57:38 + '[' 2 -gt 0 ']' 13:57:38 + shift 13:57:38 + case "$command" in 13:57:38 + command pyenv local 3.11.10 13:57:38 + for arg in "$@" 13:57:38 + case $arg in 13:57:38 + pkg_list+='tox ' 13:57:38 + for arg in "$@" 13:57:38 + case $arg in 13:57:38 + pkg_list+='virtualenv ' 13:57:38 + for arg in "$@" 13:57:38 + case $arg in 13:57:38 + pkg_list+='urllib3~=1.26.15 ' 13:57:38 + [[ -f /tmp/.toxenv ]] 13:57:38 ++ cat /tmp/.toxenv 13:57:38 + lf_venv=/tmp/venv-UzWJ 13:57:38 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-UzWJ from' file:/tmp/.toxenv 13:57:38 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-UzWJ from file:/tmp/.toxenv 13:57:38 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 13:57:38 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 13:57:38 + local 'pip_opts=--upgrade --quiet' 13:57:38 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 13:57:38 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 13:57:38 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 13:57:38 + [[ -n '' ]] 13:57:38 + [[ -n '' ]] 13:57:38 + lf-venv-pip-install /tmp/venv-UzWJ/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 13:57:38 + local venv_python=/tmp/venv-UzWJ/bin/python3 13:57:38 + shift 13:57:38 + local upstream=https://pypi.org/simple 13:57:38 + /tmp/venv-UzWJ/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 13:57:39 + return 0 13:57:39 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 13:57:39 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 13:57:39 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 13:57:39 + lf-venv-pip-install /tmp/venv-UzWJ/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 13:57:39 + local venv_python=/tmp/venv-UzWJ/bin/python3 13:57:39 + shift 13:57:39 + local upstream=https://pypi.org/simple 13:57:39 + /tmp/venv-UzWJ/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 13:57:40 + return 0 13:57:40 + type python3 13:57:40 + true 13:57:40 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-UzWJ/bin to PATH' 13:57:40 lf-activate-venv(): INFO: Adding /tmp/venv-UzWJ/bin to PATH 13:57:40 + PATH=/tmp/venv-UzWJ/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 13:57:40 + return 0 13:57:40 + [[ -d /opt/pyenv ]] 13:57:40 + echo '---> Setting up pyenv' 13:57:40 ---> Setting up pyenv 13:57:40 + export PYENV_ROOT=/opt/pyenv 13:57:40 + PYENV_ROOT=/opt/pyenv 13:57:40 + export PATH=/opt/pyenv/bin:/tmp/venv-UzWJ/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 13:57:40 + PATH=/opt/pyenv/bin:/tmp/venv-UzWJ/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 13:57:40 ++ pwd 13:57:40 + PYTHONPATH=/w/workspace/transportpce-tox-verify-transportpce-master 13:57:40 + export PYTHONPATH 13:57:40 + export TOX_TESTENV_PASSENV=PYTHONPATH 13:57:40 + TOX_TESTENV_PASSENV=PYTHONPATH 13:57:40 + tox --version 13:57:40 4.65.4 from /tmp/venv-UzWJ/lib/python3.11/site-packages/tox/__init__.py 13:57:40 + PARALLEL=True 13:57:40 + TOX_OPTIONS_LIST= 13:57:40 + [[ -n '' ]] 13:57:40 + case ${PARALLEL,,} in 13:57:40 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 13:57:40 + tox --parallel auto --parallel-live 13:57:40 + tee -a /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tox.log 13:57:42 checkbashisms: freeze> python -m pip freeze --all 13:57:42 docs: install_deps> python -I -m pip install -r docs/requirements.txt 13:57:42 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 13:57:42 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 13:57:42 checkbashisms: pip==26.2.1,setuptools==84.0.0 13:57:42 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 13:57:42 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)' 13:57:42 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 13:57:44 checkbashisms: OK ✔ in 3.18 seconds 13:57:44 pre-commit: install_deps> python -I -m pip install pre-commit 13:57:46 pre-commit: freeze> python -m pip freeze --all 13:57:46 pre-commit: cfgv==3.5.0,distlib==0.4.3,filelock==4.1.1,identify==2.6.20,nodeenv==1.11.0,packaging==26.3,pip==26.2.1,platformdirs==4.13.0,pre_commit==4.7.0,python-discovery==1.6.2,PyYAML==6.0.3,setuptools==84.0.0,virtualenv==21.14.7 13:57:46 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 13:57:46 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)' 13:57:46 /usr/bin/cpan 13:57:46 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run --all-files --show-diff-on-failure 13:57:47 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 13:57:47 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 13:57:47 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 13:57:48 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 13:57:48 buildcontroller: freeze> python -m pip freeze --all 13:57:48 [INFO] Initializing environment for https://github.com/hhatto/autopep8. 13:57:48 buildcontroller: bcrypt==5.0.0,certifi==2026.7.22,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.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 13:57:48 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh 13:57:48 + update-java-alternatives -l 13:57:48 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 13:57:48 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 13:57:48 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 13:57:48 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 13:57:48 update-alternatives: error: no alternatives for jaotc 13:57:48 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 13:57:48 update-alternatives: error: no alternatives for rmic 13:57:49 + + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 13:57:49 java -version 13:57:49 + JAVA_VER=21.0 13:57:49 + echo 21.0 13:57:49 21.0 13:57:49 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 13:57:49 + javac -version 13:57:49 21.0 13:57:49 No java21 or newer available 13:57:49 + JAVAC_VER=21.0 13:57:49 + echo 21.0 13:57:49 + [ 21.0 -ge 21 ] 13:57:49 ./installMavenUbuntu.sh: 14: [: Illegal number: 21.0 13:57:49 + echo No java21 or newer available 13:57:49 + exit 1 13:57:49 buildcontroller: exit 1 (0.58 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh pid=2780 13:57:49 buildcontroller: FAIL ✖ in 8.58 seconds 13:57:49 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 13:57:49 [INFO] Initializing environment for https://github.com/koalaman/shellcheck-precommit. 13:57:50 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier. 13:57:50 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:prettier@4.0.0-alpha.8. 13:57:50 [INFO] Initializing environment for https://github.com/adrienverge/yamllint. 13:57:51 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 13:57:51 [INFO] Once installed this environment will be reused. 13:57:51 [INFO] This may take a few minutes... 13:57:53 pylint: freeze> python -m pip freeze --all 13:57:53 pylint: astroid==4.3.4,dill==0.4.1,isort==9.0.2,mccabe==0.7.0,mypy_extensions==1.1.0,pip==26.2.1,platformdirs==4.13.0,pylint==4.1.3,setuptools==84.0.0,tomlkit==0.15.1 13:57:53 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}$' '{}' + 13:57:54 docs: freeze> python -m pip freeze --all 13:57:54 docs-linkcheck: freeze> python -m pip freeze --all 13:57:54 docs: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.7.22,charset-normalizer==3.5.2,deepmerge==3.0.1,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.52.1,lfdocs_conf==0.11.0,MarkupSafe==3.0.4,minijinja==2.24.0,mistune==3.3.4,packaging==26.3,picobox==4.0.0,pip==26.2.1,Pygments==2.21.0,PyYAML==6.0.3,referencing==0.37.0,requests==2.34.2,requests-file==3.0.1,roman-numerals==4.1.0,rpds-py==2026.9.1,setuptools==84.0.0,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==8.5.0,sphinx-tabs==3.5.0,sphinx_mdinclude==0.6.2,sphinx_rtd_theme==3.1.0,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-httpdomain==2.2.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,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,urllib3==2.8.0 13:57:54 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 13:57:54 docs-linkcheck: alabaster==1.0.0,attrs==26.1.0,babel==2.18.0,certifi==2026.7.22,charset-normalizer==3.5.2,deepmerge==3.0.1,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.52.1,lfdocs_conf==0.11.0,MarkupSafe==3.0.4,minijinja==2.24.0,mistune==3.3.4,packaging==26.3,picobox==4.0.0,pip==26.2.1,Pygments==2.21.0,PyYAML==6.0.3,referencing==0.37.0,requests==2.34.2,requests-file==3.0.1,roman-numerals==4.1.0,rpds-py==2026.9.1,setuptools==84.0.0,snowballstemmer==3.1.1,Sphinx==9.0.4,sphinx-data-viewer==0.1.5,sphinx-needs==8.5.0,sphinx-tabs==3.5.0,sphinx_mdinclude==0.6.2,sphinx_rtd_theme==3.1.0,sphinxcontrib-applehelp==2.0.0,sphinxcontrib-devhelp==2.0.0,sphinxcontrib-htmlhelp==2.1.0,sphinxcontrib-httpdomain==2.2.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,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,urllib3==2.8.0 13:57:54 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 13:57:55 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 13:57:55 [INFO] Once installed this environment will be reused. 13:57:55 [INFO] This may take a few minutes... 13:57:57 docs: OK ✔ in 16.9 seconds 13:57:57 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 13:57:59 docs-linkcheck: OK ✔ in 18.85 seconds 13:57:59 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 13:58:00 [INFO] Installing environment for https://github.com/hhatto/autopep8. 13:58:00 [INFO] Once installed this environment will be reused. 13:58:00 [INFO] This may take a few minutes... 13:58:04 [INFO] Installing environment for https://github.com/perltidy/perltidy. 13:58:04 [INFO] Once installed this environment will be reused. 13:58:04 [INFO] This may take a few minutes... 13:58:04 build_karaf_tests221: freeze> python -m pip freeze --all 13:58:04 build_karaf_tests221: bcrypt==5.0.0,certifi==2026.7.22,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.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 13:58:04 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 13:58:04 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf221 13:58:04 ./build_karaf_for_tests.sh: 22: mvn: not found 13:58:04 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 13:58:04 build karaf in karaf221 with ./karaf221.env 13:58:04 build_karaf_tests221: exit 127 (0.02 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3339 13:58:04 build_karaf_tests221: FAIL ✖ in 7.09 seconds 13:58:04 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 13:58:06 build_karaf_tests71: freeze> python -m pip freeze --all 13:58:06 build_karaf_tests71: bcrypt==5.0.0,certifi==2026.7.22,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.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 13:58:06 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 13:58:06 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf71 13:58:06 ./build_karaf_for_tests.sh: 22: mvn: not found 13:58:06 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 13:58:06 build karaf in karaf71 with ./karaf71.env 13:58:06 build_karaf_tests71: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3361 13:58:06 build_karaf_tests71: FAIL ✖ in 6.8 seconds 13:58:06 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 13:58:09 ************* Module 2.2.1.test12_end2end 13:58:09 transportpce_tests/2.2.1/test12_end2end.py:435:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 13:58:09 ************* Module common.test_utils 13:58:09 transportpce_tests/common/test_utils.py:532:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 13:58:09 transportpce_tests/common/test_utils.py:555:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 13:58:09 transportpce_tests/common/test_utils.py:581:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 13:58:09 transportpce_tests/common/test_utils.py:617:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 13:58:09 transportpce_tests/common/test_utils.py:635:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 13:58:09 transportpce_tests/common/test_utils.py:666:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 13:58:09 transportpce_tests/common/test_utils.py:687:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 13:58:09 13:58:09 ----------------------------------- 13:58:09 Your code has been rated at 9.99/10 13:58:09 13:58:10 build_karaf_tests200: freeze> python -m pip freeze --all 13:58:11 build_karaf_tests200: bcrypt==5.0.0,certifi==2026.7.22,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.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 13:58:11 build_karaf_tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 13:58:11 build karaf in karafoc200 with ./karafoc200.env 13:58:11 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karafoc200 13:58:11 ./build_karaf_for_tests.sh: 22: mvn: not found 13:58:11 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 13:58:11 build_karaf_tests200: exit 127 (0.01 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3450 13:58:11 build_karaf_tests200: FAIL ✖ in 6.41 seconds 13:58:11 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 13:58:11 pylint: exit 1 (17.89 seconds) /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}$' '{}' + pid=3221 13:58:11 pylint: FAIL ✖ in 21.97 seconds 13:58:11 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 13:58:11 [INFO] Installing environment for https://github.com/pre-commit/mirrors-prettier. 13:58:11 [INFO] Once installed this environment will be reused. 13:58:11 [INFO] This may take a few minutes... 13:58:13 buildlighty: freeze> python -m pip freeze --all 13:58:13 buildlighty: bcrypt==5.0.0,certifi==2026.7.22,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.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 13:58:13 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh 13:58:13 ./build.sh: 7: mvn: not found 13:58:13 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 13:58:13 buildlighty: exit 9 (0.01 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh pid=3528 13:58:16 [INFO] Installing environment for https://github.com/adrienverge/yamllint. 13:58:16 [INFO] Once installed this environment will be reused. 13:58:16 [INFO] This may take a few minutes... 13:58:18 buildlighty: FAIL ✖ in 6.94 seconds 13:58:18 sims: freeze> python -m pip freeze --all 13:58:18 sims: bcrypt==5.0.0,certifi==2026.7.22,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.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 13:58:18 sims: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./install_lightynode.sh 13:58:18 Using lighynode version 22.1.0.7 13:58:18 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 13:58:20 trim trailing whitespace.................................................Passed 13:58:20 fix end of files.........................................................Passed 13:58:20 check for added large files..............................................Passed 13:58:20 check for merge conflicts................................................Passed 13:58:21 check for case conflicts.................................................Passed 13:58:21 check json...............................................................Passed 13:58:21 mixed line ending........................................................Passed 13:58:21 Tabs remover.............................................................Passed 13:58:21 autopep8.................................................................Passed 13:58:23 perltidy.................................................................Passed 13:58:24 ShellCheck v0.11.0.......................................................Passed 13:58:29 prettier.................................................................Passed 13:58:30 yamllint.................................................................Passed 13:58:30 sims: OK ✔ in 12.89 seconds 13:58:30 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run gitlint-ci --hook-stage manual 13:58:31 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 13:58:31 [INFO] Once installed this environment will be reused. 13:58:31 [INFO] This may take a few minutes... 13:58:39 gitlint..................................................................Passed 13:59:00 pre-commit: OK ✔ in 55.44 seconds 13:59:00 testsPCE: freeze> python -m pip freeze --all 13:59:01 testsPCE: bcrypt==5.0.0,certifi==2026.7.22,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.66.1,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.0.0,pbr==5.11.1,pillow==12.3.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.11,Pygments==2.21.0,PyNaCl==1.6.2,pyparsing==3.3.3,pytest==9.1.1,python-dateutil==2.9.0.post0,pytz==2026.5,requests==2.34.2,scipy==1.17.1,setuptools==50.3.2,six==1.17.0,urllib3==2.8.0,Werkzeug==2.0.3,xlrd==1.2.0 13:59:01 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce 13:59:01 pytest -q transportpce_tests/pce/test01_pce.py 14:01:01 EEEEEEEEEEEEEEEEEEEE [100%] 14:01:04 ==================================== ERRORS ==================================== 14:01:04 _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ 14:01:04 14:01:04 cls = 14:01:04 14:01:04 @classmethod 14:01:04 def setUpClass(cls): 14:01:04 # pylint: disable=bare-except 14:01:04 sample_files_parsed = False 14:01:04 time.sleep(20) 14:01:04 try: 14:01:04 TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 14:01:04 "..", "..", "sample_configs", "honeynode-topo.json") 14:01:04 with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: 14:01:04 cls.simple_topo_bi_dir_data = topo_bi_dir.read() 14:01:04 14:01:04 TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 14:01:04 "..", "..", "sample_configs", "NW-simple-topology.json") 14:01:04 14:01:04 with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: 14:01:04 cls.simple_topo_uni_dir_data = topo_uni_dir.read() 14:01:04 14:01:04 TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 14:01:04 "..", "..", "sample_configs", "NW-for-test-5-4.json") 14:01:04 with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: 14:01:04 cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() 14:01:04 PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 14:01:04 "..", "..", "sample_configs", "pce_portmapping_221.json") 14:01:04 with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: 14:01:04 cls.port_mapping_data = port_mapping.read() 14:01:04 sample_files_parsed = True 14:01:04 except PermissionError as err: 14:01:04 print("Permission Error when trying to read sample files\n", err) 14:01:04 sys.exit(2) 14:01:04 except FileNotFoundError as err: 14:01:04 print("File Not found Error when trying to read sample files\n", err) 14:01:04 sys.exit(2) 14:01:04 except: 14:01:04 print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) 14:01:04 sys.exit(2) 14:01:04 finally: 14:01:04 if sample_files_parsed: 14:01:04 print("sample files content loaded") 14:01:04 14:01:04 > cls.processes = test_utils.start_tpce() 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 14:01:04 transportpce_tests/pce/test01_pce.py:93: 14:01:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:04 14:01:04 def start_tpce(): 14:01:04 if 'NO_ODL_STARTUP' in os.environ: 14:01:04 print('No OpenDaylight instance to start!') 14:01:04 return [] 14:01:04 print('starting OpenDaylight...') 14:01:04 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:01:04 process = start_lighty() 14:01:04 else: 14:01:04 process = start_karaf() 14:01:04 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:01:04 print('OpenDaylight started !') 14:01:04 else: 14:01:04 print('OpenDaylight failed to start !') 14:01:04 shutdown_process(process) 14:01:04 for pid in process_list: 14:01:04 shutdown_process(pid) 14:01:04 > sys.exit(1) 14:01:04 E SystemExit: 1 14:01:04 14:01:04 transportpce_tests/common/test_utils.py:234: SystemExit 14:01:04 ---------------------------- Captured stdout setup ----------------------------- 14:01:04 sample files content loaded 14:01:04 starting OpenDaylight... 14:01:04 starting KARAF (karaf) TransportPCE build... 14:01:04 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:01:04 ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ 14:01:04 14:01:04 cls = 14:01:04 func = . at 0x7f0565f8b380> 14:01:04 when = 'setup' 14:01:04 reraise = (, ) 14:01:04 14:01:04 @classmethod 14:01:04 def from_call( 14:01:04 cls, 14:01:04 func: Callable[[], TResult], 14:01:04 when: Literal["collect", "setup", "call", "teardown"], 14:01:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:01:04 ) -> CallInfo[TResult]: 14:01:04 """Call func, wrapping the result in a CallInfo. 14:01:04 14:01:04 :param func: 14:01:04 The function to call. Called without arguments. 14:01:04 :type func: Callable[[], _pytest.runner.TResult] 14:01:04 :param when: 14:01:04 The phase in which the function is called. 14:01:04 :param reraise: 14:01:04 Exception or exceptions that shall propagate if raised by the 14:01:04 function, instead of being wrapped in the CallInfo. 14:01:04 """ 14:01:04 excinfo = None 14:01:04 instant = timing.Instant() 14:01:04 try: 14:01:04 > result: TResult | None = func() 14:01:04 ^^^^^^ 14:01:04 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:01:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:01:04 lambda: runtest_hook(item=item, **kwds), 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:01:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:01:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:01:04 yield 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:01:04 return (yield) 14:01:04 ^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:01:04 item.session._setupstate.setup(item) 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:01:04 col.setup() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:01:04 super().setup() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:01:04 self._request._fillfixtures() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:01:04 item.funcargs[argname] = self.getfixturevalue(argname) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:01:04 fixturedef = self._get_active_fixturedef(argname) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:01:04 fixturedef.execute(request=subrequest) 14:01:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:04 14:01:04 self = 14:01:04 request = > 14:01:04 14:01:04 def execute(self, request: SubRequest) -> FixtureValue: 14:01:04 """Return the value of this fixture, executing it if not cached.""" 14:01:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:01:04 # This needs to be done before checking if we have a cached value, since 14:01:04 # if a dependent fixture has their cache invalidated, e.g. due to 14:01:04 # parametrization, they finalize themselves and fixtures depending on it 14:01:04 # (which will likely include this fixture) setting `self.cached_result = None`. 14:01:04 # See #4871 14:01:04 requested_fixtures_that_should_finalize_us = [] 14:01:04 for argname in self.argnames: 14:01:04 fixturedef = request._get_active_fixturedef(argname) 14:01:04 # Saves requested fixtures in a list so we later can add our finalizer 14:01:04 # to them, ensuring that if a requested fixture gets torn down we get torn 14:01:04 # down first. This is generally handled by SetupState, but still currently 14:01:04 # needed when this fixture is not parametrized but depends on a parametrized 14:01:04 # fixture. 14:01:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:01:04 14:01:04 # Check for (and return) cached value/exception. 14:01:04 if self.cached_result is not None: 14:01:04 request_cache_key = self.cache_key(request) 14:01:04 cache_key = self.cached_result[1] 14:01:04 try: 14:01:04 # Attempt to make a normal == check: this might fail for objects 14:01:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:01:04 cache_hit = bool(request_cache_key == cache_key) 14:01:04 except (ValueError, RuntimeError): 14:01:04 # If the comparison raises, use 'is' as fallback. 14:01:04 cache_hit = request_cache_key is cache_key 14:01:04 14:01:04 if cache_hit: 14:01:04 if self.cached_result[2] is not None: 14:01:04 exc, exc_tb = self.cached_result[2] 14:01:04 raise exc.with_traceback(exc_tb) 14:01:04 else: 14:01:04 return self.cached_result[0] 14:01:04 # We have a previous but differently parametrized fixture instance 14:01:04 # so we need to tear it down before creating a new one. 14:01:04 self.finish(request) 14:01:04 assert self.cached_result is None 14:01:04 14:01:04 # Add finalizer to requested fixtures we saved previously. 14:01:04 # We make sure to do this after checking for cached value to avoid 14:01:04 # adding our finalizer multiple times. (#12135) 14:01:04 finalizer = functools.partial(self.finish, request=request) 14:01:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:01:04 parent_fixture.addfinalizer(finalizer) 14:01:04 14:01:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:01:04 # which is executed last. 14:01:04 > assert not self._finalizers 14:01:04 ^^^^^^^^^^^^^^^^^^^^ 14:01:04 E AssertionError 14:01:04 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:01:04 ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ 14:01:04 14:01:04 cls = 14:01:04 func = . at 0x7f0565f9fc40> 14:01:04 when = 'setup' 14:01:04 reraise = (, ) 14:01:04 14:01:04 @classmethod 14:01:04 def from_call( 14:01:04 cls, 14:01:04 func: Callable[[], TResult], 14:01:04 when: Literal["collect", "setup", "call", "teardown"], 14:01:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:01:04 ) -> CallInfo[TResult]: 14:01:04 """Call func, wrapping the result in a CallInfo. 14:01:04 14:01:04 :param func: 14:01:04 The function to call. Called without arguments. 14:01:04 :type func: Callable[[], _pytest.runner.TResult] 14:01:04 :param when: 14:01:04 The phase in which the function is called. 14:01:04 :param reraise: 14:01:04 Exception or exceptions that shall propagate if raised by the 14:01:04 function, instead of being wrapped in the CallInfo. 14:01:04 """ 14:01:04 excinfo = None 14:01:04 instant = timing.Instant() 14:01:04 try: 14:01:04 > result: TResult | None = func() 14:01:04 ^^^^^^ 14:01:04 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:01:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:01:04 lambda: runtest_hook(item=item, **kwds), 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:01:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:01:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:01:04 yield 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:01:04 return (yield) 14:01:04 ^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:01:04 item.session._setupstate.setup(item) 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:01:04 col.setup() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:01:04 super().setup() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:01:04 self._request._fillfixtures() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:01:04 item.funcargs[argname] = self.getfixturevalue(argname) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:01:04 fixturedef = self._get_active_fixturedef(argname) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:01:04 fixturedef.execute(request=subrequest) 14:01:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:04 14:01:04 self = 14:01:04 request = > 14:01:04 14:01:04 def execute(self, request: SubRequest) -> FixtureValue: 14:01:04 """Return the value of this fixture, executing it if not cached.""" 14:01:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:01:04 # This needs to be done before checking if we have a cached value, since 14:01:04 # if a dependent fixture has their cache invalidated, e.g. due to 14:01:04 # parametrization, they finalize themselves and fixtures depending on it 14:01:04 # (which will likely include this fixture) setting `self.cached_result = None`. 14:01:04 # See #4871 14:01:04 requested_fixtures_that_should_finalize_us = [] 14:01:04 for argname in self.argnames: 14:01:04 fixturedef = request._get_active_fixturedef(argname) 14:01:04 # Saves requested fixtures in a list so we later can add our finalizer 14:01:04 # to them, ensuring that if a requested fixture gets torn down we get torn 14:01:04 # down first. This is generally handled by SetupState, but still currently 14:01:04 # needed when this fixture is not parametrized but depends on a parametrized 14:01:04 # fixture. 14:01:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:01:04 14:01:04 # Check for (and return) cached value/exception. 14:01:04 if self.cached_result is not None: 14:01:04 request_cache_key = self.cache_key(request) 14:01:04 cache_key = self.cached_result[1] 14:01:04 try: 14:01:04 # Attempt to make a normal == check: this might fail for objects 14:01:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:01:04 cache_hit = bool(request_cache_key == cache_key) 14:01:04 except (ValueError, RuntimeError): 14:01:04 # If the comparison raises, use 'is' as fallback. 14:01:04 cache_hit = request_cache_key is cache_key 14:01:04 14:01:04 if cache_hit: 14:01:04 if self.cached_result[2] is not None: 14:01:04 exc, exc_tb = self.cached_result[2] 14:01:04 raise exc.with_traceback(exc_tb) 14:01:04 else: 14:01:04 return self.cached_result[0] 14:01:04 # We have a previous but differently parametrized fixture instance 14:01:04 # so we need to tear it down before creating a new one. 14:01:04 self.finish(request) 14:01:04 assert self.cached_result is None 14:01:04 14:01:04 # Add finalizer to requested fixtures we saved previously. 14:01:04 # We make sure to do this after checking for cached value to avoid 14:01:04 # adding our finalizer multiple times. (#12135) 14:01:04 finalizer = functools.partial(self.finish, request=request) 14:01:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:01:04 parent_fixture.addfinalizer(finalizer) 14:01:04 14:01:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:01:04 # which is executed last. 14:01:04 > assert not self._finalizers 14:01:04 ^^^^^^^^^^^^^^^^^^^^ 14:01:04 E AssertionError 14:01:04 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:01:04 ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ 14:01:04 14:01:04 cls = 14:01:04 func = . at 0x7f0565f9f420> 14:01:04 when = 'setup' 14:01:04 reraise = (, ) 14:01:04 14:01:04 @classmethod 14:01:04 def from_call( 14:01:04 cls, 14:01:04 func: Callable[[], TResult], 14:01:04 when: Literal["collect", "setup", "call", "teardown"], 14:01:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:01:04 ) -> CallInfo[TResult]: 14:01:04 """Call func, wrapping the result in a CallInfo. 14:01:04 14:01:04 :param func: 14:01:04 The function to call. Called without arguments. 14:01:04 :type func: Callable[[], _pytest.runner.TResult] 14:01:04 :param when: 14:01:04 The phase in which the function is called. 14:01:04 :param reraise: 14:01:04 Exception or exceptions that shall propagate if raised by the 14:01:04 function, instead of being wrapped in the CallInfo. 14:01:04 """ 14:01:04 excinfo = None 14:01:04 instant = timing.Instant() 14:01:04 try: 14:01:04 > result: TResult | None = func() 14:01:04 ^^^^^^ 14:01:04 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:01:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:01:04 lambda: runtest_hook(item=item, **kwds), 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:01:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:01:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:01:04 yield 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:01:04 return (yield) 14:01:04 ^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:01:04 item.session._setupstate.setup(item) 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:01:04 col.setup() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:01:04 super().setup() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:01:04 self._request._fillfixtures() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:01:04 item.funcargs[argname] = self.getfixturevalue(argname) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:01:04 fixturedef = self._get_active_fixturedef(argname) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:01:04 fixturedef.execute(request=subrequest) 14:01:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:04 14:01:04 self = 14:01:04 request = > 14:01:04 14:01:04 def execute(self, request: SubRequest) -> FixtureValue: 14:01:04 """Return the value of this fixture, executing it if not cached.""" 14:01:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:01:04 # This needs to be done before checking if we have a cached value, since 14:01:04 # if a dependent fixture has their cache invalidated, e.g. due to 14:01:04 # parametrization, they finalize themselves and fixtures depending on it 14:01:04 # (which will likely include this fixture) setting `self.cached_result = None`. 14:01:04 # See #4871 14:01:04 requested_fixtures_that_should_finalize_us = [] 14:01:04 for argname in self.argnames: 14:01:04 fixturedef = request._get_active_fixturedef(argname) 14:01:04 # Saves requested fixtures in a list so we later can add our finalizer 14:01:04 # to them, ensuring that if a requested fixture gets torn down we get torn 14:01:04 # down first. This is generally handled by SetupState, but still currently 14:01:04 # needed when this fixture is not parametrized but depends on a parametrized 14:01:04 # fixture. 14:01:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:01:04 14:01:04 # Check for (and return) cached value/exception. 14:01:04 if self.cached_result is not None: 14:01:04 request_cache_key = self.cache_key(request) 14:01:04 cache_key = self.cached_result[1] 14:01:04 try: 14:01:04 # Attempt to make a normal == check: this might fail for objects 14:01:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:01:04 cache_hit = bool(request_cache_key == cache_key) 14:01:04 except (ValueError, RuntimeError): 14:01:04 # If the comparison raises, use 'is' as fallback. 14:01:04 cache_hit = request_cache_key is cache_key 14:01:04 14:01:04 if cache_hit: 14:01:04 if self.cached_result[2] is not None: 14:01:04 exc, exc_tb = self.cached_result[2] 14:01:04 raise exc.with_traceback(exc_tb) 14:01:04 else: 14:01:04 return self.cached_result[0] 14:01:04 # We have a previous but differently parametrized fixture instance 14:01:04 # so we need to tear it down before creating a new one. 14:01:04 self.finish(request) 14:01:04 assert self.cached_result is None 14:01:04 14:01:04 # Add finalizer to requested fixtures we saved previously. 14:01:04 # We make sure to do this after checking for cached value to avoid 14:01:04 # adding our finalizer multiple times. (#12135) 14:01:04 finalizer = functools.partial(self.finish, request=request) 14:01:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:01:04 parent_fixture.addfinalizer(finalizer) 14:01:04 14:01:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:01:04 # which is executed last. 14:01:04 > assert not self._finalizers 14:01:04 ^^^^^^^^^^^^^^^^^^^^ 14:01:04 E AssertionError 14:01:04 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:01:04 ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ 14:01:04 14:01:04 cls = 14:01:04 func = . at 0x7f0565f8b380> 14:01:04 when = 'setup' 14:01:04 reraise = (, ) 14:01:04 14:01:04 @classmethod 14:01:04 def from_call( 14:01:04 cls, 14:01:04 func: Callable[[], TResult], 14:01:04 when: Literal["collect", "setup", "call", "teardown"], 14:01:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:01:04 ) -> CallInfo[TResult]: 14:01:04 """Call func, wrapping the result in a CallInfo. 14:01:04 14:01:04 :param func: 14:01:04 The function to call. Called without arguments. 14:01:04 :type func: Callable[[], _pytest.runner.TResult] 14:01:04 :param when: 14:01:04 The phase in which the function is called. 14:01:04 :param reraise: 14:01:04 Exception or exceptions that shall propagate if raised by the 14:01:04 function, instead of being wrapped in the CallInfo. 14:01:04 """ 14:01:04 excinfo = None 14:01:04 instant = timing.Instant() 14:01:04 try: 14:01:04 > result: TResult | None = func() 14:01:04 ^^^^^^ 14:01:04 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:01:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:01:04 lambda: runtest_hook(item=item, **kwds), 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:01:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:01:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:01:04 yield 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:01:04 return (yield) 14:01:04 ^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:01:04 item.session._setupstate.setup(item) 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:01:04 col.setup() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:01:04 super().setup() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:01:04 self._request._fillfixtures() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:01:04 item.funcargs[argname] = self.getfixturevalue(argname) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:01:04 fixturedef = self._get_active_fixturedef(argname) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:01:04 fixturedef.execute(request=subrequest) 14:01:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:04 14:01:04 self = 14:01:04 request = > 14:01:04 14:01:04 def execute(self, request: SubRequest) -> FixtureValue: 14:01:04 """Return the value of this fixture, executing it if not cached.""" 14:01:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:01:04 # This needs to be done before checking if we have a cached value, since 14:01:04 # if a dependent fixture has their cache invalidated, e.g. due to 14:01:04 # parametrization, they finalize themselves and fixtures depending on it 14:01:04 # (which will likely include this fixture) setting `self.cached_result = None`. 14:01:04 # See #4871 14:01:04 requested_fixtures_that_should_finalize_us = [] 14:01:04 for argname in self.argnames: 14:01:04 fixturedef = request._get_active_fixturedef(argname) 14:01:04 # Saves requested fixtures in a list so we later can add our finalizer 14:01:04 # to them, ensuring that if a requested fixture gets torn down we get torn 14:01:04 # down first. This is generally handled by SetupState, but still currently 14:01:04 # needed when this fixture is not parametrized but depends on a parametrized 14:01:04 # fixture. 14:01:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:01:04 14:01:04 # Check for (and return) cached value/exception. 14:01:04 if self.cached_result is not None: 14:01:04 request_cache_key = self.cache_key(request) 14:01:04 cache_key = self.cached_result[1] 14:01:04 try: 14:01:04 # Attempt to make a normal == check: this might fail for objects 14:01:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:01:04 cache_hit = bool(request_cache_key == cache_key) 14:01:04 except (ValueError, RuntimeError): 14:01:04 # If the comparison raises, use 'is' as fallback. 14:01:04 cache_hit = request_cache_key is cache_key 14:01:04 14:01:04 if cache_hit: 14:01:04 if self.cached_result[2] is not None: 14:01:04 exc, exc_tb = self.cached_result[2] 14:01:04 raise exc.with_traceback(exc_tb) 14:01:04 else: 14:01:04 return self.cached_result[0] 14:01:04 # We have a previous but differently parametrized fixture instance 14:01:04 # so we need to tear it down before creating a new one. 14:01:04 self.finish(request) 14:01:04 assert self.cached_result is None 14:01:04 14:01:04 # Add finalizer to requested fixtures we saved previously. 14:01:04 # We make sure to do this after checking for cached value to avoid 14:01:04 # adding our finalizer multiple times. (#12135) 14:01:04 finalizer = functools.partial(self.finish, request=request) 14:01:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:01:04 parent_fixture.addfinalizer(finalizer) 14:01:04 14:01:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:01:04 # which is executed last. 14:01:04 > assert not self._finalizers 14:01:04 ^^^^^^^^^^^^^^^^^^^^ 14:01:04 E AssertionError 14:01:04 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:01:04 ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ 14:01:04 14:01:04 cls = 14:01:04 func = . at 0x7f0565f9f1a0> 14:01:04 when = 'setup' 14:01:04 reraise = (, ) 14:01:04 14:01:04 @classmethod 14:01:04 def from_call( 14:01:04 cls, 14:01:04 func: Callable[[], TResult], 14:01:04 when: Literal["collect", "setup", "call", "teardown"], 14:01:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:01:04 ) -> CallInfo[TResult]: 14:01:04 """Call func, wrapping the result in a CallInfo. 14:01:04 14:01:04 :param func: 14:01:04 The function to call. Called without arguments. 14:01:04 :type func: Callable[[], _pytest.runner.TResult] 14:01:04 :param when: 14:01:04 The phase in which the function is called. 14:01:04 :param reraise: 14:01:04 Exception or exceptions that shall propagate if raised by the 14:01:04 function, instead of being wrapped in the CallInfo. 14:01:04 """ 14:01:04 excinfo = None 14:01:04 instant = timing.Instant() 14:01:04 try: 14:01:04 > result: TResult | None = func() 14:01:04 ^^^^^^ 14:01:04 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:01:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:01:04 lambda: runtest_hook(item=item, **kwds), 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:01:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:01:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:01:04 yield 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:01:04 return (yield) 14:01:04 ^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:01:04 item.session._setupstate.setup(item) 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:01:04 col.setup() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:01:04 super().setup() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:01:04 self._request._fillfixtures() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:01:04 item.funcargs[argname] = self.getfixturevalue(argname) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:01:04 fixturedef = self._get_active_fixturedef(argname) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:01:04 fixturedef.execute(request=subrequest) 14:01:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:04 14:01:04 self = 14:01:04 request = > 14:01:04 14:01:04 def execute(self, request: SubRequest) -> FixtureValue: 14:01:04 """Return the value of this fixture, executing it if not cached.""" 14:01:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:01:04 # This needs to be done before checking if we have a cached value, since 14:01:04 # if a dependent fixture has their cache invalidated, e.g. due to 14:01:04 # parametrization, they finalize themselves and fixtures depending on it 14:01:04 # (which will likely include this fixture) setting `self.cached_result = None`. 14:01:04 # See #4871 14:01:04 requested_fixtures_that_should_finalize_us = [] 14:01:04 for argname in self.argnames: 14:01:04 fixturedef = request._get_active_fixturedef(argname) 14:01:04 # Saves requested fixtures in a list so we later can add our finalizer 14:01:04 # to them, ensuring that if a requested fixture gets torn down we get torn 14:01:04 # down first. This is generally handled by SetupState, but still currently 14:01:04 # needed when this fixture is not parametrized but depends on a parametrized 14:01:04 # fixture. 14:01:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:01:04 14:01:04 # Check for (and return) cached value/exception. 14:01:04 if self.cached_result is not None: 14:01:04 request_cache_key = self.cache_key(request) 14:01:04 cache_key = self.cached_result[1] 14:01:04 try: 14:01:04 # Attempt to make a normal == check: this might fail for objects 14:01:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:01:04 cache_hit = bool(request_cache_key == cache_key) 14:01:04 except (ValueError, RuntimeError): 14:01:04 # If the comparison raises, use 'is' as fallback. 14:01:04 cache_hit = request_cache_key is cache_key 14:01:04 14:01:04 if cache_hit: 14:01:04 if self.cached_result[2] is not None: 14:01:04 exc, exc_tb = self.cached_result[2] 14:01:04 raise exc.with_traceback(exc_tb) 14:01:04 else: 14:01:04 return self.cached_result[0] 14:01:04 # We have a previous but differently parametrized fixture instance 14:01:04 # so we need to tear it down before creating a new one. 14:01:04 self.finish(request) 14:01:04 assert self.cached_result is None 14:01:04 14:01:04 # Add finalizer to requested fixtures we saved previously. 14:01:04 # We make sure to do this after checking for cached value to avoid 14:01:04 # adding our finalizer multiple times. (#12135) 14:01:04 finalizer = functools.partial(self.finish, request=request) 14:01:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:01:04 parent_fixture.addfinalizer(finalizer) 14:01:04 14:01:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:01:04 # which is executed last. 14:01:04 > assert not self._finalizers 14:01:04 ^^^^^^^^^^^^^^^^^^^^ 14:01:04 E AssertionError 14:01:04 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:01:04 ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ 14:01:04 14:01:04 cls = 14:01:04 func = . at 0x7f0565f9f6a0> 14:01:04 when = 'setup' 14:01:04 reraise = (, ) 14:01:04 14:01:04 @classmethod 14:01:04 def from_call( 14:01:04 cls, 14:01:04 func: Callable[[], TResult], 14:01:04 when: Literal["collect", "setup", "call", "teardown"], 14:01:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:01:04 ) -> CallInfo[TResult]: 14:01:04 """Call func, wrapping the result in a CallInfo. 14:01:04 14:01:04 :param func: 14:01:04 The function to call. Called without arguments. 14:01:04 :type func: Callable[[], _pytest.runner.TResult] 14:01:04 :param when: 14:01:04 The phase in which the function is called. 14:01:04 :param reraise: 14:01:04 Exception or exceptions that shall propagate if raised by the 14:01:04 function, instead of being wrapped in the CallInfo. 14:01:04 """ 14:01:04 excinfo = None 14:01:04 instant = timing.Instant() 14:01:04 try: 14:01:04 > result: TResult | None = func() 14:01:04 ^^^^^^ 14:01:04 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:01:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:01:04 lambda: runtest_hook(item=item, **kwds), 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:01:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:01:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:01:04 yield 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:01:04 return (yield) 14:01:04 ^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:01:04 item.session._setupstate.setup(item) 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:01:04 col.setup() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:01:04 super().setup() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:01:04 self._request._fillfixtures() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:01:04 item.funcargs[argname] = self.getfixturevalue(argname) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:01:04 fixturedef = self._get_active_fixturedef(argname) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:01:04 fixturedef.execute(request=subrequest) 14:01:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:04 14:01:04 self = 14:01:04 request = > 14:01:04 14:01:04 def execute(self, request: SubRequest) -> FixtureValue: 14:01:04 """Return the value of this fixture, executing it if not cached.""" 14:01:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:01:04 # This needs to be done before checking if we have a cached value, since 14:01:04 # if a dependent fixture has their cache invalidated, e.g. due to 14:01:04 # parametrization, they finalize themselves and fixtures depending on it 14:01:04 # (which will likely include this fixture) setting `self.cached_result = None`. 14:01:04 # See #4871 14:01:04 requested_fixtures_that_should_finalize_us = [] 14:01:04 for argname in self.argnames: 14:01:04 fixturedef = request._get_active_fixturedef(argname) 14:01:04 # Saves requested fixtures in a list so we later can add our finalizer 14:01:04 # to them, ensuring that if a requested fixture gets torn down we get torn 14:01:04 # down first. This is generally handled by SetupState, but still currently 14:01:04 # needed when this fixture is not parametrized but depends on a parametrized 14:01:04 # fixture. 14:01:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:01:04 14:01:04 # Check for (and return) cached value/exception. 14:01:04 if self.cached_result is not None: 14:01:04 request_cache_key = self.cache_key(request) 14:01:04 cache_key = self.cached_result[1] 14:01:04 try: 14:01:04 # Attempt to make a normal == check: this might fail for objects 14:01:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:01:04 cache_hit = bool(request_cache_key == cache_key) 14:01:04 except (ValueError, RuntimeError): 14:01:04 # If the comparison raises, use 'is' as fallback. 14:01:04 cache_hit = request_cache_key is cache_key 14:01:04 14:01:04 if cache_hit: 14:01:04 if self.cached_result[2] is not None: 14:01:04 exc, exc_tb = self.cached_result[2] 14:01:04 raise exc.with_traceback(exc_tb) 14:01:04 else: 14:01:04 return self.cached_result[0] 14:01:04 # We have a previous but differently parametrized fixture instance 14:01:04 # so we need to tear it down before creating a new one. 14:01:04 self.finish(request) 14:01:04 assert self.cached_result is None 14:01:04 14:01:04 # Add finalizer to requested fixtures we saved previously. 14:01:04 # We make sure to do this after checking for cached value to avoid 14:01:04 # adding our finalizer multiple times. (#12135) 14:01:04 finalizer = functools.partial(self.finish, request=request) 14:01:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:01:04 parent_fixture.addfinalizer(finalizer) 14:01:04 14:01:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:01:04 # which is executed last. 14:01:04 > assert not self._finalizers 14:01:04 ^^^^^^^^^^^^^^^^^^^^ 14:01:04 E AssertionError 14:01:04 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:01:04 ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ 14:01:04 14:01:04 cls = 14:01:04 func = . at 0x7f05658a1da0> 14:01:04 when = 'setup' 14:01:04 reraise = (, ) 14:01:04 14:01:04 @classmethod 14:01:04 def from_call( 14:01:04 cls, 14:01:04 func: Callable[[], TResult], 14:01:04 when: Literal["collect", "setup", "call", "teardown"], 14:01:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:01:04 ) -> CallInfo[TResult]: 14:01:04 """Call func, wrapping the result in a CallInfo. 14:01:04 14:01:04 :param func: 14:01:04 The function to call. Called without arguments. 14:01:04 :type func: Callable[[], _pytest.runner.TResult] 14:01:04 :param when: 14:01:04 The phase in which the function is called. 14:01:04 :param reraise: 14:01:04 Exception or exceptions that shall propagate if raised by the 14:01:04 function, instead of being wrapped in the CallInfo. 14:01:04 """ 14:01:04 excinfo = None 14:01:04 instant = timing.Instant() 14:01:04 try: 14:01:04 > result: TResult | None = func() 14:01:04 ^^^^^^ 14:01:04 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:01:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:01:04 lambda: runtest_hook(item=item, **kwds), 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:01:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:01:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:01:04 yield 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:01:04 return (yield) 14:01:04 ^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:01:04 item.session._setupstate.setup(item) 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:01:04 col.setup() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:01:04 super().setup() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:01:04 self._request._fillfixtures() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:01:04 item.funcargs[argname] = self.getfixturevalue(argname) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:01:04 fixturedef = self._get_active_fixturedef(argname) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:01:04 fixturedef.execute(request=subrequest) 14:01:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:04 14:01:04 self = 14:01:04 request = > 14:01:04 14:01:04 def execute(self, request: SubRequest) -> FixtureValue: 14:01:04 """Return the value of this fixture, executing it if not cached.""" 14:01:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:01:04 # This needs to be done before checking if we have a cached value, since 14:01:04 # if a dependent fixture has their cache invalidated, e.g. due to 14:01:04 # parametrization, they finalize themselves and fixtures depending on it 14:01:04 # (which will likely include this fixture) setting `self.cached_result = None`. 14:01:04 # See #4871 14:01:04 requested_fixtures_that_should_finalize_us = [] 14:01:04 for argname in self.argnames: 14:01:04 fixturedef = request._get_active_fixturedef(argname) 14:01:04 # Saves requested fixtures in a list so we later can add our finalizer 14:01:04 # to them, ensuring that if a requested fixture gets torn down we get torn 14:01:04 # down first. This is generally handled by SetupState, but still currently 14:01:04 # needed when this fixture is not parametrized but depends on a parametrized 14:01:04 # fixture. 14:01:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:01:04 14:01:04 # Check for (and return) cached value/exception. 14:01:04 if self.cached_result is not None: 14:01:04 request_cache_key = self.cache_key(request) 14:01:04 cache_key = self.cached_result[1] 14:01:04 try: 14:01:04 # Attempt to make a normal == check: this might fail for objects 14:01:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:01:04 cache_hit = bool(request_cache_key == cache_key) 14:01:04 except (ValueError, RuntimeError): 14:01:04 # If the comparison raises, use 'is' as fallback. 14:01:04 cache_hit = request_cache_key is cache_key 14:01:04 14:01:04 if cache_hit: 14:01:04 if self.cached_result[2] is not None: 14:01:04 exc, exc_tb = self.cached_result[2] 14:01:04 raise exc.with_traceback(exc_tb) 14:01:04 else: 14:01:04 return self.cached_result[0] 14:01:04 # We have a previous but differently parametrized fixture instance 14:01:04 # so we need to tear it down before creating a new one. 14:01:04 self.finish(request) 14:01:04 assert self.cached_result is None 14:01:04 14:01:04 # Add finalizer to requested fixtures we saved previously. 14:01:04 # We make sure to do this after checking for cached value to avoid 14:01:04 # adding our finalizer multiple times. (#12135) 14:01:04 finalizer = functools.partial(self.finish, request=request) 14:01:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:01:04 parent_fixture.addfinalizer(finalizer) 14:01:04 14:01:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:01:04 # which is executed last. 14:01:04 > assert not self._finalizers 14:01:04 ^^^^^^^^^^^^^^^^^^^^ 14:01:04 E AssertionError 14:01:04 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:01:04 ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ 14:01:04 14:01:04 cls = 14:01:04 func = . at 0x7f0565f8bec0> 14:01:04 when = 'setup' 14:01:04 reraise = (, ) 14:01:04 14:01:04 @classmethod 14:01:04 def from_call( 14:01:04 cls, 14:01:04 func: Callable[[], TResult], 14:01:04 when: Literal["collect", "setup", "call", "teardown"], 14:01:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:01:04 ) -> CallInfo[TResult]: 14:01:04 """Call func, wrapping the result in a CallInfo. 14:01:04 14:01:04 :param func: 14:01:04 The function to call. Called without arguments. 14:01:04 :type func: Callable[[], _pytest.runner.TResult] 14:01:04 :param when: 14:01:04 The phase in which the function is called. 14:01:04 :param reraise: 14:01:04 Exception or exceptions that shall propagate if raised by the 14:01:04 function, instead of being wrapped in the CallInfo. 14:01:04 """ 14:01:04 excinfo = None 14:01:04 instant = timing.Instant() 14:01:04 try: 14:01:04 > result: TResult | None = func() 14:01:04 ^^^^^^ 14:01:04 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:01:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:01:04 lambda: runtest_hook(item=item, **kwds), 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:01:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:01:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:01:04 yield 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:01:04 return (yield) 14:01:04 ^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:01:04 item.session._setupstate.setup(item) 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:01:04 col.setup() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:01:04 super().setup() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:01:04 self._request._fillfixtures() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:01:04 item.funcargs[argname] = self.getfixturevalue(argname) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:01:04 fixturedef = self._get_active_fixturedef(argname) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:01:04 fixturedef.execute(request=subrequest) 14:01:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:04 14:01:04 self = 14:01:04 request = > 14:01:04 14:01:04 def execute(self, request: SubRequest) -> FixtureValue: 14:01:04 """Return the value of this fixture, executing it if not cached.""" 14:01:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:01:04 # This needs to be done before checking if we have a cached value, since 14:01:04 # if a dependent fixture has their cache invalidated, e.g. due to 14:01:04 # parametrization, they finalize themselves and fixtures depending on it 14:01:04 # (which will likely include this fixture) setting `self.cached_result = None`. 14:01:04 # See #4871 14:01:04 requested_fixtures_that_should_finalize_us = [] 14:01:04 for argname in self.argnames: 14:01:04 fixturedef = request._get_active_fixturedef(argname) 14:01:04 # Saves requested fixtures in a list so we later can add our finalizer 14:01:04 # to them, ensuring that if a requested fixture gets torn down we get torn 14:01:04 # down first. This is generally handled by SetupState, but still currently 14:01:04 # needed when this fixture is not parametrized but depends on a parametrized 14:01:04 # fixture. 14:01:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:01:04 14:01:04 # Check for (and return) cached value/exception. 14:01:04 if self.cached_result is not None: 14:01:04 request_cache_key = self.cache_key(request) 14:01:04 cache_key = self.cached_result[1] 14:01:04 try: 14:01:04 # Attempt to make a normal == check: this might fail for objects 14:01:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:01:04 cache_hit = bool(request_cache_key == cache_key) 14:01:04 except (ValueError, RuntimeError): 14:01:04 # If the comparison raises, use 'is' as fallback. 14:01:04 cache_hit = request_cache_key is cache_key 14:01:04 14:01:04 if cache_hit: 14:01:04 if self.cached_result[2] is not None: 14:01:04 exc, exc_tb = self.cached_result[2] 14:01:04 raise exc.with_traceback(exc_tb) 14:01:04 else: 14:01:04 return self.cached_result[0] 14:01:04 # We have a previous but differently parametrized fixture instance 14:01:04 # so we need to tear it down before creating a new one. 14:01:04 self.finish(request) 14:01:04 assert self.cached_result is None 14:01:04 14:01:04 # Add finalizer to requested fixtures we saved previously. 14:01:04 # We make sure to do this after checking for cached value to avoid 14:01:04 # adding our finalizer multiple times. (#12135) 14:01:04 finalizer = functools.partial(self.finish, request=request) 14:01:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:01:04 parent_fixture.addfinalizer(finalizer) 14:01:04 14:01:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:01:04 # which is executed last. 14:01:04 > assert not self._finalizers 14:01:04 ^^^^^^^^^^^^^^^^^^^^ 14:01:04 E AssertionError 14:01:04 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:01:04 ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ 14:01:04 14:01:04 cls = 14:01:04 func = . at 0x7f0565f8b380> 14:01:04 when = 'setup' 14:01:04 reraise = (, ) 14:01:04 14:01:04 @classmethod 14:01:04 def from_call( 14:01:04 cls, 14:01:04 func: Callable[[], TResult], 14:01:04 when: Literal["collect", "setup", "call", "teardown"], 14:01:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:01:04 ) -> CallInfo[TResult]: 14:01:04 """Call func, wrapping the result in a CallInfo. 14:01:04 14:01:04 :param func: 14:01:04 The function to call. Called without arguments. 14:01:04 :type func: Callable[[], _pytest.runner.TResult] 14:01:04 :param when: 14:01:04 The phase in which the function is called. 14:01:04 :param reraise: 14:01:04 Exception or exceptions that shall propagate if raised by the 14:01:04 function, instead of being wrapped in the CallInfo. 14:01:04 """ 14:01:04 excinfo = None 14:01:04 instant = timing.Instant() 14:01:04 try: 14:01:04 > result: TResult | None = func() 14:01:04 ^^^^^^ 14:01:04 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:01:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:01:04 lambda: runtest_hook(item=item, **kwds), 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:01:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:01:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:01:04 yield 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:01:04 return (yield) 14:01:04 ^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:01:04 item.session._setupstate.setup(item) 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:01:04 col.setup() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:01:04 super().setup() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:01:04 self._request._fillfixtures() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:01:04 item.funcargs[argname] = self.getfixturevalue(argname) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:01:04 fixturedef = self._get_active_fixturedef(argname) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:01:04 fixturedef.execute(request=subrequest) 14:01:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:04 14:01:04 self = 14:01:04 request = > 14:01:04 14:01:04 def execute(self, request: SubRequest) -> FixtureValue: 14:01:04 """Return the value of this fixture, executing it if not cached.""" 14:01:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:01:04 # This needs to be done before checking if we have a cached value, since 14:01:04 # if a dependent fixture has their cache invalidated, e.g. due to 14:01:04 # parametrization, they finalize themselves and fixtures depending on it 14:01:04 # (which will likely include this fixture) setting `self.cached_result = None`. 14:01:04 # See #4871 14:01:04 requested_fixtures_that_should_finalize_us = [] 14:01:04 for argname in self.argnames: 14:01:04 fixturedef = request._get_active_fixturedef(argname) 14:01:04 # Saves requested fixtures in a list so we later can add our finalizer 14:01:04 # to them, ensuring that if a requested fixture gets torn down we get torn 14:01:04 # down first. This is generally handled by SetupState, but still currently 14:01:04 # needed when this fixture is not parametrized but depends on a parametrized 14:01:04 # fixture. 14:01:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:01:04 14:01:04 # Check for (and return) cached value/exception. 14:01:04 if self.cached_result is not None: 14:01:04 request_cache_key = self.cache_key(request) 14:01:04 cache_key = self.cached_result[1] 14:01:04 try: 14:01:04 # Attempt to make a normal == check: this might fail for objects 14:01:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:01:04 cache_hit = bool(request_cache_key == cache_key) 14:01:04 except (ValueError, RuntimeError): 14:01:04 # If the comparison raises, use 'is' as fallback. 14:01:04 cache_hit = request_cache_key is cache_key 14:01:04 14:01:04 if cache_hit: 14:01:04 if self.cached_result[2] is not None: 14:01:04 exc, exc_tb = self.cached_result[2] 14:01:04 raise exc.with_traceback(exc_tb) 14:01:04 else: 14:01:04 return self.cached_result[0] 14:01:04 # We have a previous but differently parametrized fixture instance 14:01:04 # so we need to tear it down before creating a new one. 14:01:04 self.finish(request) 14:01:04 assert self.cached_result is None 14:01:04 14:01:04 # Add finalizer to requested fixtures we saved previously. 14:01:04 # We make sure to do this after checking for cached value to avoid 14:01:04 # adding our finalizer multiple times. (#12135) 14:01:04 finalizer = functools.partial(self.finish, request=request) 14:01:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:01:04 parent_fixture.addfinalizer(finalizer) 14:01:04 14:01:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:01:04 # which is executed last. 14:01:04 > assert not self._finalizers 14:01:04 ^^^^^^^^^^^^^^^^^^^^ 14:01:04 E AssertionError 14:01:04 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:01:04 ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ 14:01:04 14:01:04 cls = 14:01:04 func = . at 0x7f0565f8bec0> 14:01:04 when = 'setup' 14:01:04 reraise = (, ) 14:01:04 14:01:04 @classmethod 14:01:04 def from_call( 14:01:04 cls, 14:01:04 func: Callable[[], TResult], 14:01:04 when: Literal["collect", "setup", "call", "teardown"], 14:01:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:01:04 ) -> CallInfo[TResult]: 14:01:04 """Call func, wrapping the result in a CallInfo. 14:01:04 14:01:04 :param func: 14:01:04 The function to call. Called without arguments. 14:01:04 :type func: Callable[[], _pytest.runner.TResult] 14:01:04 :param when: 14:01:04 The phase in which the function is called. 14:01:04 :param reraise: 14:01:04 Exception or exceptions that shall propagate if raised by the 14:01:04 function, instead of being wrapped in the CallInfo. 14:01:04 """ 14:01:04 excinfo = None 14:01:04 instant = timing.Instant() 14:01:04 try: 14:01:04 > result: TResult | None = func() 14:01:04 ^^^^^^ 14:01:04 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:01:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:01:04 lambda: runtest_hook(item=item, **kwds), 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:01:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:01:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:01:04 yield 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:01:04 return (yield) 14:01:04 ^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:01:04 item.session._setupstate.setup(item) 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:01:04 col.setup() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:01:04 super().setup() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:01:04 self._request._fillfixtures() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:01:04 item.funcargs[argname] = self.getfixturevalue(argname) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:01:04 fixturedef = self._get_active_fixturedef(argname) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:01:04 fixturedef.execute(request=subrequest) 14:01:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:04 14:01:04 self = 14:01:04 request = > 14:01:04 14:01:04 def execute(self, request: SubRequest) -> FixtureValue: 14:01:04 """Return the value of this fixture, executing it if not cached.""" 14:01:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:01:04 # This needs to be done before checking if we have a cached value, since 14:01:04 # if a dependent fixture has their cache invalidated, e.g. due to 14:01:04 # parametrization, they finalize themselves and fixtures depending on it 14:01:04 # (which will likely include this fixture) setting `self.cached_result = None`. 14:01:04 # See #4871 14:01:04 requested_fixtures_that_should_finalize_us = [] 14:01:04 for argname in self.argnames: 14:01:04 fixturedef = request._get_active_fixturedef(argname) 14:01:04 # Saves requested fixtures in a list so we later can add our finalizer 14:01:04 # to them, ensuring that if a requested fixture gets torn down we get torn 14:01:04 # down first. This is generally handled by SetupState, but still currently 14:01:04 # needed when this fixture is not parametrized but depends on a parametrized 14:01:04 # fixture. 14:01:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:01:04 14:01:04 # Check for (and return) cached value/exception. 14:01:04 if self.cached_result is not None: 14:01:04 request_cache_key = self.cache_key(request) 14:01:04 cache_key = self.cached_result[1] 14:01:04 try: 14:01:04 # Attempt to make a normal == check: this might fail for objects 14:01:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:01:04 cache_hit = bool(request_cache_key == cache_key) 14:01:04 except (ValueError, RuntimeError): 14:01:04 # If the comparison raises, use 'is' as fallback. 14:01:04 cache_hit = request_cache_key is cache_key 14:01:04 14:01:04 if cache_hit: 14:01:04 if self.cached_result[2] is not None: 14:01:04 exc, exc_tb = self.cached_result[2] 14:01:04 raise exc.with_traceback(exc_tb) 14:01:04 else: 14:01:04 return self.cached_result[0] 14:01:04 # We have a previous but differently parametrized fixture instance 14:01:04 # so we need to tear it down before creating a new one. 14:01:04 self.finish(request) 14:01:04 assert self.cached_result is None 14:01:04 14:01:04 # Add finalizer to requested fixtures we saved previously. 14:01:04 # We make sure to do this after checking for cached value to avoid 14:01:04 # adding our finalizer multiple times. (#12135) 14:01:04 finalizer = functools.partial(self.finish, request=request) 14:01:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:01:04 parent_fixture.addfinalizer(finalizer) 14:01:04 14:01:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:01:04 # which is executed last. 14:01:04 > assert not self._finalizers 14:01:04 ^^^^^^^^^^^^^^^^^^^^ 14:01:04 E AssertionError 14:01:04 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:01:04 _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ 14:01:04 14:01:04 cls = 14:01:04 func = . at 0x7f05658a1940> 14:01:04 when = 'setup' 14:01:04 reraise = (, ) 14:01:04 14:01:04 @classmethod 14:01:04 def from_call( 14:01:04 cls, 14:01:04 func: Callable[[], TResult], 14:01:04 when: Literal["collect", "setup", "call", "teardown"], 14:01:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:01:04 ) -> CallInfo[TResult]: 14:01:04 """Call func, wrapping the result in a CallInfo. 14:01:04 14:01:04 :param func: 14:01:04 The function to call. Called without arguments. 14:01:04 :type func: Callable[[], _pytest.runner.TResult] 14:01:04 :param when: 14:01:04 The phase in which the function is called. 14:01:04 :param reraise: 14:01:04 Exception or exceptions that shall propagate if raised by the 14:01:04 function, instead of being wrapped in the CallInfo. 14:01:04 """ 14:01:04 excinfo = None 14:01:04 instant = timing.Instant() 14:01:04 try: 14:01:04 > result: TResult | None = func() 14:01:04 ^^^^^^ 14:01:04 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:01:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:01:04 lambda: runtest_hook(item=item, **kwds), 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:01:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:01:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:01:04 yield 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:01:04 return (yield) 14:01:04 ^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:01:04 item.session._setupstate.setup(item) 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:01:04 col.setup() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:01:04 super().setup() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:01:04 self._request._fillfixtures() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:01:04 item.funcargs[argname] = self.getfixturevalue(argname) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:01:04 fixturedef = self._get_active_fixturedef(argname) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:01:04 fixturedef.execute(request=subrequest) 14:01:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:04 14:01:04 self = 14:01:04 request = > 14:01:04 14:01:04 def execute(self, request: SubRequest) -> FixtureValue: 14:01:04 """Return the value of this fixture, executing it if not cached.""" 14:01:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:01:04 # This needs to be done before checking if we have a cached value, since 14:01:04 # if a dependent fixture has their cache invalidated, e.g. due to 14:01:04 # parametrization, they finalize themselves and fixtures depending on it 14:01:04 # (which will likely include this fixture) setting `self.cached_result = None`. 14:01:04 # See #4871 14:01:04 requested_fixtures_that_should_finalize_us = [] 14:01:04 for argname in self.argnames: 14:01:04 fixturedef = request._get_active_fixturedef(argname) 14:01:04 # Saves requested fixtures in a list so we later can add our finalizer 14:01:04 # to them, ensuring that if a requested fixture gets torn down we get torn 14:01:04 # down first. This is generally handled by SetupState, but still currently 14:01:04 # needed when this fixture is not parametrized but depends on a parametrized 14:01:04 # fixture. 14:01:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:01:04 14:01:04 # Check for (and return) cached value/exception. 14:01:04 if self.cached_result is not None: 14:01:04 request_cache_key = self.cache_key(request) 14:01:04 cache_key = self.cached_result[1] 14:01:04 try: 14:01:04 # Attempt to make a normal == check: this might fail for objects 14:01:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:01:04 cache_hit = bool(request_cache_key == cache_key) 14:01:04 except (ValueError, RuntimeError): 14:01:04 # If the comparison raises, use 'is' as fallback. 14:01:04 cache_hit = request_cache_key is cache_key 14:01:04 14:01:04 if cache_hit: 14:01:04 if self.cached_result[2] is not None: 14:01:04 exc, exc_tb = self.cached_result[2] 14:01:04 raise exc.with_traceback(exc_tb) 14:01:04 else: 14:01:04 return self.cached_result[0] 14:01:04 # We have a previous but differently parametrized fixture instance 14:01:04 # so we need to tear it down before creating a new one. 14:01:04 self.finish(request) 14:01:04 assert self.cached_result is None 14:01:04 14:01:04 # Add finalizer to requested fixtures we saved previously. 14:01:04 # We make sure to do this after checking for cached value to avoid 14:01:04 # adding our finalizer multiple times. (#12135) 14:01:04 finalizer = functools.partial(self.finish, request=request) 14:01:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:01:04 parent_fixture.addfinalizer(finalizer) 14:01:04 14:01:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:01:04 # which is executed last. 14:01:04 > assert not self._finalizers 14:01:04 ^^^^^^^^^^^^^^^^^^^^ 14:01:04 E AssertionError 14:01:04 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:01:04 ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ 14:01:04 14:01:04 cls = 14:01:04 func = . at 0x7f0565f9f1a0> 14:01:04 when = 'setup' 14:01:04 reraise = (, ) 14:01:04 14:01:04 @classmethod 14:01:04 def from_call( 14:01:04 cls, 14:01:04 func: Callable[[], TResult], 14:01:04 when: Literal["collect", "setup", "call", "teardown"], 14:01:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:01:04 ) -> CallInfo[TResult]: 14:01:04 """Call func, wrapping the result in a CallInfo. 14:01:04 14:01:04 :param func: 14:01:04 The function to call. Called without arguments. 14:01:04 :type func: Callable[[], _pytest.runner.TResult] 14:01:04 :param when: 14:01:04 The phase in which the function is called. 14:01:04 :param reraise: 14:01:04 Exception or exceptions that shall propagate if raised by the 14:01:04 function, instead of being wrapped in the CallInfo. 14:01:04 """ 14:01:04 excinfo = None 14:01:04 instant = timing.Instant() 14:01:04 try: 14:01:04 > result: TResult | None = func() 14:01:04 ^^^^^^ 14:01:04 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:01:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:01:04 lambda: runtest_hook(item=item, **kwds), 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:01:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:01:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:01:04 yield 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:01:04 return (yield) 14:01:04 ^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:01:04 item.session._setupstate.setup(item) 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:01:04 col.setup() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:01:04 super().setup() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:01:04 self._request._fillfixtures() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:01:04 item.funcargs[argname] = self.getfixturevalue(argname) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:01:04 fixturedef = self._get_active_fixturedef(argname) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:01:04 fixturedef.execute(request=subrequest) 14:01:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:04 14:01:04 self = 14:01:04 request = > 14:01:04 14:01:04 def execute(self, request: SubRequest) -> FixtureValue: 14:01:04 """Return the value of this fixture, executing it if not cached.""" 14:01:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:01:04 # This needs to be done before checking if we have a cached value, since 14:01:04 # if a dependent fixture has their cache invalidated, e.g. due to 14:01:04 # parametrization, they finalize themselves and fixtures depending on it 14:01:04 # (which will likely include this fixture) setting `self.cached_result = None`. 14:01:04 # See #4871 14:01:04 requested_fixtures_that_should_finalize_us = [] 14:01:04 for argname in self.argnames: 14:01:04 fixturedef = request._get_active_fixturedef(argname) 14:01:04 # Saves requested fixtures in a list so we later can add our finalizer 14:01:04 # to them, ensuring that if a requested fixture gets torn down we get torn 14:01:04 # down first. This is generally handled by SetupState, but still currently 14:01:04 # needed when this fixture is not parametrized but depends on a parametrized 14:01:04 # fixture. 14:01:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:01:04 14:01:04 # Check for (and return) cached value/exception. 14:01:04 if self.cached_result is not None: 14:01:04 request_cache_key = self.cache_key(request) 14:01:04 cache_key = self.cached_result[1] 14:01:04 try: 14:01:04 # Attempt to make a normal == check: this might fail for objects 14:01:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:01:04 cache_hit = bool(request_cache_key == cache_key) 14:01:04 except (ValueError, RuntimeError): 14:01:04 # If the comparison raises, use 'is' as fallback. 14:01:04 cache_hit = request_cache_key is cache_key 14:01:04 14:01:04 if cache_hit: 14:01:04 if self.cached_result[2] is not None: 14:01:04 exc, exc_tb = self.cached_result[2] 14:01:04 raise exc.with_traceback(exc_tb) 14:01:04 else: 14:01:04 return self.cached_result[0] 14:01:04 # We have a previous but differently parametrized fixture instance 14:01:04 # so we need to tear it down before creating a new one. 14:01:04 self.finish(request) 14:01:04 assert self.cached_result is None 14:01:04 14:01:04 # Add finalizer to requested fixtures we saved previously. 14:01:04 # We make sure to do this after checking for cached value to avoid 14:01:04 # adding our finalizer multiple times. (#12135) 14:01:04 finalizer = functools.partial(self.finish, request=request) 14:01:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:01:04 parent_fixture.addfinalizer(finalizer) 14:01:04 14:01:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:01:04 # which is executed last. 14:01:04 > assert not self._finalizers 14:01:04 ^^^^^^^^^^^^^^^^^^^^ 14:01:04 E AssertionError 14:01:04 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:01:04 _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ 14:01:04 14:01:04 cls = 14:01:04 func = . at 0x7f0565f8b380> 14:01:04 when = 'setup' 14:01:04 reraise = (, ) 14:01:04 14:01:04 @classmethod 14:01:04 def from_call( 14:01:04 cls, 14:01:04 func: Callable[[], TResult], 14:01:04 when: Literal["collect", "setup", "call", "teardown"], 14:01:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:01:04 ) -> CallInfo[TResult]: 14:01:04 """Call func, wrapping the result in a CallInfo. 14:01:04 14:01:04 :param func: 14:01:04 The function to call. Called without arguments. 14:01:04 :type func: Callable[[], _pytest.runner.TResult] 14:01:04 :param when: 14:01:04 The phase in which the function is called. 14:01:04 :param reraise: 14:01:04 Exception or exceptions that shall propagate if raised by the 14:01:04 function, instead of being wrapped in the CallInfo. 14:01:04 """ 14:01:04 excinfo = None 14:01:04 instant = timing.Instant() 14:01:04 try: 14:01:04 > result: TResult | None = func() 14:01:04 ^^^^^^ 14:01:04 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:01:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:01:04 lambda: runtest_hook(item=item, **kwds), 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:01:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:01:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:01:04 yield 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:01:04 return (yield) 14:01:04 ^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:01:04 item.session._setupstate.setup(item) 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:01:04 col.setup() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:01:04 super().setup() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:01:04 self._request._fillfixtures() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:01:04 item.funcargs[argname] = self.getfixturevalue(argname) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:01:04 fixturedef = self._get_active_fixturedef(argname) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:01:04 fixturedef.execute(request=subrequest) 14:01:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:04 14:01:04 self = 14:01:04 request = > 14:01:04 14:01:04 def execute(self, request: SubRequest) -> FixtureValue: 14:01:04 """Return the value of this fixture, executing it if not cached.""" 14:01:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:01:04 # This needs to be done before checking if we have a cached value, since 14:01:04 # if a dependent fixture has their cache invalidated, e.g. due to 14:01:04 # parametrization, they finalize themselves and fixtures depending on it 14:01:04 # (which will likely include this fixture) setting `self.cached_result = None`. 14:01:04 # See #4871 14:01:04 requested_fixtures_that_should_finalize_us = [] 14:01:04 for argname in self.argnames: 14:01:04 fixturedef = request._get_active_fixturedef(argname) 14:01:04 # Saves requested fixtures in a list so we later can add our finalizer 14:01:04 # to them, ensuring that if a requested fixture gets torn down we get torn 14:01:04 # down first. This is generally handled by SetupState, but still currently 14:01:04 # needed when this fixture is not parametrized but depends on a parametrized 14:01:04 # fixture. 14:01:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:01:04 14:01:04 # Check for (and return) cached value/exception. 14:01:04 if self.cached_result is not None: 14:01:04 request_cache_key = self.cache_key(request) 14:01:04 cache_key = self.cached_result[1] 14:01:04 try: 14:01:04 # Attempt to make a normal == check: this might fail for objects 14:01:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:01:04 cache_hit = bool(request_cache_key == cache_key) 14:01:04 except (ValueError, RuntimeError): 14:01:04 # If the comparison raises, use 'is' as fallback. 14:01:04 cache_hit = request_cache_key is cache_key 14:01:04 14:01:04 if cache_hit: 14:01:04 if self.cached_result[2] is not None: 14:01:04 exc, exc_tb = self.cached_result[2] 14:01:04 raise exc.with_traceback(exc_tb) 14:01:04 else: 14:01:04 return self.cached_result[0] 14:01:04 # We have a previous but differently parametrized fixture instance 14:01:04 # so we need to tear it down before creating a new one. 14:01:04 self.finish(request) 14:01:04 assert self.cached_result is None 14:01:04 14:01:04 # Add finalizer to requested fixtures we saved previously. 14:01:04 # We make sure to do this after checking for cached value to avoid 14:01:04 # adding our finalizer multiple times. (#12135) 14:01:04 finalizer = functools.partial(self.finish, request=request) 14:01:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:01:04 parent_fixture.addfinalizer(finalizer) 14:01:04 14:01:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:01:04 # which is executed last. 14:01:04 > assert not self._finalizers 14:01:04 ^^^^^^^^^^^^^^^^^^^^ 14:01:04 E AssertionError 14:01:04 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:01:04 ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ 14:01:04 14:01:04 cls = 14:01:04 func = . at 0x7f05658a2980> 14:01:04 when = 'setup' 14:01:04 reraise = (, ) 14:01:04 14:01:04 @classmethod 14:01:04 def from_call( 14:01:04 cls, 14:01:04 func: Callable[[], TResult], 14:01:04 when: Literal["collect", "setup", "call", "teardown"], 14:01:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:01:04 ) -> CallInfo[TResult]: 14:01:04 """Call func, wrapping the result in a CallInfo. 14:01:04 14:01:04 :param func: 14:01:04 The function to call. Called without arguments. 14:01:04 :type func: Callable[[], _pytest.runner.TResult] 14:01:04 :param when: 14:01:04 The phase in which the function is called. 14:01:04 :param reraise: 14:01:04 Exception or exceptions that shall propagate if raised by the 14:01:04 function, instead of being wrapped in the CallInfo. 14:01:04 """ 14:01:04 excinfo = None 14:01:04 instant = timing.Instant() 14:01:04 try: 14:01:04 > result: TResult | None = func() 14:01:04 ^^^^^^ 14:01:04 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:01:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:01:04 lambda: runtest_hook(item=item, **kwds), 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:01:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:01:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:01:04 yield 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:01:04 return (yield) 14:01:04 ^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:01:04 item.session._setupstate.setup(item) 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:01:04 col.setup() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:01:04 super().setup() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:01:04 self._request._fillfixtures() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:01:04 item.funcargs[argname] = self.getfixturevalue(argname) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:01:04 fixturedef = self._get_active_fixturedef(argname) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:01:04 fixturedef.execute(request=subrequest) 14:01:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:04 14:01:04 self = 14:01:04 request = > 14:01:04 14:01:04 def execute(self, request: SubRequest) -> FixtureValue: 14:01:04 """Return the value of this fixture, executing it if not cached.""" 14:01:04 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:01:04 # This needs to be done before checking if we have a cached value, since 14:01:04 # if a dependent fixture has their cache invalidated, e.g. due to 14:01:04 # parametrization, they finalize themselves and fixtures depending on it 14:01:04 # (which will likely include this fixture) setting `self.cached_result = None`. 14:01:04 # See #4871 14:01:04 requested_fixtures_that_should_finalize_us = [] 14:01:04 for argname in self.argnames: 14:01:04 fixturedef = request._get_active_fixturedef(argname) 14:01:04 # Saves requested fixtures in a list so we later can add our finalizer 14:01:04 # to them, ensuring that if a requested fixture gets torn down we get torn 14:01:04 # down first. This is generally handled by SetupState, but still currently 14:01:04 # needed when this fixture is not parametrized but depends on a parametrized 14:01:04 # fixture. 14:01:04 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:01:04 14:01:04 # Check for (and return) cached value/exception. 14:01:04 if self.cached_result is not None: 14:01:04 request_cache_key = self.cache_key(request) 14:01:04 cache_key = self.cached_result[1] 14:01:04 try: 14:01:04 # Attempt to make a normal == check: this might fail for objects 14:01:04 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:01:04 cache_hit = bool(request_cache_key == cache_key) 14:01:04 except (ValueError, RuntimeError): 14:01:04 # If the comparison raises, use 'is' as fallback. 14:01:04 cache_hit = request_cache_key is cache_key 14:01:04 14:01:04 if cache_hit: 14:01:04 if self.cached_result[2] is not None: 14:01:04 exc, exc_tb = self.cached_result[2] 14:01:04 raise exc.with_traceback(exc_tb) 14:01:04 else: 14:01:04 return self.cached_result[0] 14:01:04 # We have a previous but differently parametrized fixture instance 14:01:04 # so we need to tear it down before creating a new one. 14:01:04 self.finish(request) 14:01:04 assert self.cached_result is None 14:01:04 14:01:04 # Add finalizer to requested fixtures we saved previously. 14:01:04 # We make sure to do this after checking for cached value to avoid 14:01:04 # adding our finalizer multiple times. (#12135) 14:01:04 finalizer = functools.partial(self.finish, request=request) 14:01:04 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:01:04 parent_fixture.addfinalizer(finalizer) 14:01:04 14:01:04 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:01:04 # which is executed last. 14:01:04 > assert not self._finalizers 14:01:04 ^^^^^^^^^^^^^^^^^^^^ 14:01:04 E AssertionError 14:01:04 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:01:04 ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ 14:01:04 14:01:04 cls = 14:01:04 func = . at 0x7f0565f9c540> 14:01:04 when = 'setup' 14:01:04 reraise = (, ) 14:01:04 14:01:04 @classmethod 14:01:04 def from_call( 14:01:04 cls, 14:01:04 func: Callable[[], TResult], 14:01:04 when: Literal["collect", "setup", "call", "teardown"], 14:01:04 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:01:04 ) -> CallInfo[TResult]: 14:01:04 """Call func, wrapping the result in a CallInfo. 14:01:04 14:01:04 :param func: 14:01:04 The function to call. Called without arguments. 14:01:04 :type func: Callable[[], _pytest.runner.TResult] 14:01:04 :param when: 14:01:04 The phase in which the function is called. 14:01:04 :param reraise: 14:01:04 Exception or exceptions that shall propagate if raised by the 14:01:04 function, instead of being wrapped in the CallInfo. 14:01:04 """ 14:01:04 excinfo = None 14:01:04 instant = timing.Instant() 14:01:04 try: 14:01:04 > result: TResult | None = func() 14:01:04 ^^^^^^ 14:01:04 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:01:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:01:04 lambda: runtest_hook(item=item, **kwds), 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:01:04 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:01:04 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:01:04 yield 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:01:04 return (yield) 14:01:04 ^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:01:04 item.session._setupstate.setup(item) 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:01:04 col.setup() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:01:04 super().setup() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:01:04 self._request._fillfixtures() 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:01:04 item.funcargs[argname] = self.getfixturevalue(argname) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:01:04 fixturedef = self._get_active_fixturedef(argname) 14:01:04 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:04 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:01:04 fixturedef.execute(request=subrequest) 14:01:04 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:04 14:01:04 self = 14:01:04 request = > 14:01:04 14:01:04 def execute(self, request: SubRequest) -> FixtureValue: 14:01:04 """Return the value of this fixture, executing it if not cached.""" 14:01:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:01:05 # This needs to be done before checking if we have a cached value, since 14:01:05 # if a dependent fixture has their cache invalidated, e.g. due to 14:01:05 # parametrization, they finalize themselves and fixtures depending on it 14:01:05 # (which will likely include this fixture) setting `self.cached_result = None`. 14:01:05 # See #4871 14:01:05 requested_fixtures_that_should_finalize_us = [] 14:01:05 for argname in self.argnames: 14:01:05 fixturedef = request._get_active_fixturedef(argname) 14:01:05 # Saves requested fixtures in a list so we later can add our finalizer 14:01:05 # to them, ensuring that if a requested fixture gets torn down we get torn 14:01:05 # down first. This is generally handled by SetupState, but still currently 14:01:05 # needed when this fixture is not parametrized but depends on a parametrized 14:01:05 # fixture. 14:01:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:01:05 14:01:05 # Check for (and return) cached value/exception. 14:01:05 if self.cached_result is not None: 14:01:05 request_cache_key = self.cache_key(request) 14:01:05 cache_key = self.cached_result[1] 14:01:05 try: 14:01:05 # Attempt to make a normal == check: this might fail for objects 14:01:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:01:05 cache_hit = bool(request_cache_key == cache_key) 14:01:05 except (ValueError, RuntimeError): 14:01:05 # If the comparison raises, use 'is' as fallback. 14:01:05 cache_hit = request_cache_key is cache_key 14:01:05 14:01:05 if cache_hit: 14:01:05 if self.cached_result[2] is not None: 14:01:05 exc, exc_tb = self.cached_result[2] 14:01:05 raise exc.with_traceback(exc_tb) 14:01:05 else: 14:01:05 return self.cached_result[0] 14:01:05 # We have a previous but differently parametrized fixture instance 14:01:05 # so we need to tear it down before creating a new one. 14:01:05 self.finish(request) 14:01:05 assert self.cached_result is None 14:01:05 14:01:05 # Add finalizer to requested fixtures we saved previously. 14:01:05 # We make sure to do this after checking for cached value to avoid 14:01:05 # adding our finalizer multiple times. (#12135) 14:01:05 finalizer = functools.partial(self.finish, request=request) 14:01:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:01:05 parent_fixture.addfinalizer(finalizer) 14:01:05 14:01:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:01:05 # which is executed last. 14:01:05 > assert not self._finalizers 14:01:05 ^^^^^^^^^^^^^^^^^^^^ 14:01:05 E AssertionError 14:01:05 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:01:05 ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ 14:01:05 14:01:05 cls = 14:01:05 func = . at 0x7f0565f8b380> 14:01:05 when = 'setup' 14:01:05 reraise = (, ) 14:01:05 14:01:05 @classmethod 14:01:05 def from_call( 14:01:05 cls, 14:01:05 func: Callable[[], TResult], 14:01:05 when: Literal["collect", "setup", "call", "teardown"], 14:01:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:01:05 ) -> CallInfo[TResult]: 14:01:05 """Call func, wrapping the result in a CallInfo. 14:01:05 14:01:05 :param func: 14:01:05 The function to call. Called without arguments. 14:01:05 :type func: Callable[[], _pytest.runner.TResult] 14:01:05 :param when: 14:01:05 The phase in which the function is called. 14:01:05 :param reraise: 14:01:05 Exception or exceptions that shall propagate if raised by the 14:01:05 function, instead of being wrapped in the CallInfo. 14:01:05 """ 14:01:05 excinfo = None 14:01:05 instant = timing.Instant() 14:01:05 try: 14:01:05 > result: TResult | None = func() 14:01:05 ^^^^^^ 14:01:05 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:01:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:01:05 lambda: runtest_hook(item=item, **kwds), 14:01:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:01:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:01:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:01:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:01:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:01:05 yield 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:01:05 return (yield) 14:01:05 ^^^^^ 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:01:05 item.session._setupstate.setup(item) 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:01:05 col.setup() 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:01:05 super().setup() 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:01:05 self._request._fillfixtures() 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:01:05 item.funcargs[argname] = self.getfixturevalue(argname) 14:01:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:01:05 fixturedef = self._get_active_fixturedef(argname) 14:01:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:01:05 fixturedef.execute(request=subrequest) 14:01:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:05 14:01:05 self = 14:01:05 request = > 14:01:05 14:01:05 def execute(self, request: SubRequest) -> FixtureValue: 14:01:05 """Return the value of this fixture, executing it if not cached.""" 14:01:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:01:05 # This needs to be done before checking if we have a cached value, since 14:01:05 # if a dependent fixture has their cache invalidated, e.g. due to 14:01:05 # parametrization, they finalize themselves and fixtures depending on it 14:01:05 # (which will likely include this fixture) setting `self.cached_result = None`. 14:01:05 # See #4871 14:01:05 requested_fixtures_that_should_finalize_us = [] 14:01:05 for argname in self.argnames: 14:01:05 fixturedef = request._get_active_fixturedef(argname) 14:01:05 # Saves requested fixtures in a list so we later can add our finalizer 14:01:05 # to them, ensuring that if a requested fixture gets torn down we get torn 14:01:05 # down first. This is generally handled by SetupState, but still currently 14:01:05 # needed when this fixture is not parametrized but depends on a parametrized 14:01:05 # fixture. 14:01:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:01:05 14:01:05 # Check for (and return) cached value/exception. 14:01:05 if self.cached_result is not None: 14:01:05 request_cache_key = self.cache_key(request) 14:01:05 cache_key = self.cached_result[1] 14:01:05 try: 14:01:05 # Attempt to make a normal == check: this might fail for objects 14:01:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:01:05 cache_hit = bool(request_cache_key == cache_key) 14:01:05 except (ValueError, RuntimeError): 14:01:05 # If the comparison raises, use 'is' as fallback. 14:01:05 cache_hit = request_cache_key is cache_key 14:01:05 14:01:05 if cache_hit: 14:01:05 if self.cached_result[2] is not None: 14:01:05 exc, exc_tb = self.cached_result[2] 14:01:05 raise exc.with_traceback(exc_tb) 14:01:05 else: 14:01:05 return self.cached_result[0] 14:01:05 # We have a previous but differently parametrized fixture instance 14:01:05 # so we need to tear it down before creating a new one. 14:01:05 self.finish(request) 14:01:05 assert self.cached_result is None 14:01:05 14:01:05 # Add finalizer to requested fixtures we saved previously. 14:01:05 # We make sure to do this after checking for cached value to avoid 14:01:05 # adding our finalizer multiple times. (#12135) 14:01:05 finalizer = functools.partial(self.finish, request=request) 14:01:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:01:05 parent_fixture.addfinalizer(finalizer) 14:01:05 14:01:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:01:05 # which is executed last. 14:01:05 > assert not self._finalizers 14:01:05 ^^^^^^^^^^^^^^^^^^^^ 14:01:05 E AssertionError 14:01:05 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:01:05 _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ 14:01:05 14:01:05 cls = 14:01:05 func = . at 0x7f05658a22a0> 14:01:05 when = 'setup' 14:01:05 reraise = (, ) 14:01:05 14:01:05 @classmethod 14:01:05 def from_call( 14:01:05 cls, 14:01:05 func: Callable[[], TResult], 14:01:05 when: Literal["collect", "setup", "call", "teardown"], 14:01:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:01:05 ) -> CallInfo[TResult]: 14:01:05 """Call func, wrapping the result in a CallInfo. 14:01:05 14:01:05 :param func: 14:01:05 The function to call. Called without arguments. 14:01:05 :type func: Callable[[], _pytest.runner.TResult] 14:01:05 :param when: 14:01:05 The phase in which the function is called. 14:01:05 :param reraise: 14:01:05 Exception or exceptions that shall propagate if raised by the 14:01:05 function, instead of being wrapped in the CallInfo. 14:01:05 """ 14:01:05 excinfo = None 14:01:05 instant = timing.Instant() 14:01:05 try: 14:01:05 > result: TResult | None = func() 14:01:05 ^^^^^^ 14:01:05 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:01:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:01:05 lambda: runtest_hook(item=item, **kwds), 14:01:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:01:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:01:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:01:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:01:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:01:05 yield 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:01:05 return (yield) 14:01:05 ^^^^^ 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:01:05 item.session._setupstate.setup(item) 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:01:05 col.setup() 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:01:05 super().setup() 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:01:05 self._request._fillfixtures() 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:01:05 item.funcargs[argname] = self.getfixturevalue(argname) 14:01:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:01:05 fixturedef = self._get_active_fixturedef(argname) 14:01:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:01:05 fixturedef.execute(request=subrequest) 14:01:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:05 14:01:05 self = 14:01:05 request = > 14:01:05 14:01:05 def execute(self, request: SubRequest) -> FixtureValue: 14:01:05 """Return the value of this fixture, executing it if not cached.""" 14:01:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:01:05 # This needs to be done before checking if we have a cached value, since 14:01:05 # if a dependent fixture has their cache invalidated, e.g. due to 14:01:05 # parametrization, they finalize themselves and fixtures depending on it 14:01:05 # (which will likely include this fixture) setting `self.cached_result = None`. 14:01:05 # See #4871 14:01:05 requested_fixtures_that_should_finalize_us = [] 14:01:05 for argname in self.argnames: 14:01:05 fixturedef = request._get_active_fixturedef(argname) 14:01:05 # Saves requested fixtures in a list so we later can add our finalizer 14:01:05 # to them, ensuring that if a requested fixture gets torn down we get torn 14:01:05 # down first. This is generally handled by SetupState, but still currently 14:01:05 # needed when this fixture is not parametrized but depends on a parametrized 14:01:05 # fixture. 14:01:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:01:05 14:01:05 # Check for (and return) cached value/exception. 14:01:05 if self.cached_result is not None: 14:01:05 request_cache_key = self.cache_key(request) 14:01:05 cache_key = self.cached_result[1] 14:01:05 try: 14:01:05 # Attempt to make a normal == check: this might fail for objects 14:01:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:01:05 cache_hit = bool(request_cache_key == cache_key) 14:01:05 except (ValueError, RuntimeError): 14:01:05 # If the comparison raises, use 'is' as fallback. 14:01:05 cache_hit = request_cache_key is cache_key 14:01:05 14:01:05 if cache_hit: 14:01:05 if self.cached_result[2] is not None: 14:01:05 exc, exc_tb = self.cached_result[2] 14:01:05 raise exc.with_traceback(exc_tb) 14:01:05 else: 14:01:05 return self.cached_result[0] 14:01:05 # We have a previous but differently parametrized fixture instance 14:01:05 # so we need to tear it down before creating a new one. 14:01:05 self.finish(request) 14:01:05 assert self.cached_result is None 14:01:05 14:01:05 # Add finalizer to requested fixtures we saved previously. 14:01:05 # We make sure to do this after checking for cached value to avoid 14:01:05 # adding our finalizer multiple times. (#12135) 14:01:05 finalizer = functools.partial(self.finish, request=request) 14:01:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:01:05 parent_fixture.addfinalizer(finalizer) 14:01:05 14:01:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:01:05 # which is executed last. 14:01:05 > assert not self._finalizers 14:01:05 ^^^^^^^^^^^^^^^^^^^^ 14:01:05 E AssertionError 14:01:05 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:01:05 _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ 14:01:05 14:01:05 cls = 14:01:05 func = . at 0x7f0565f9f1a0> 14:01:05 when = 'setup' 14:01:05 reraise = (, ) 14:01:05 14:01:05 @classmethod 14:01:05 def from_call( 14:01:05 cls, 14:01:05 func: Callable[[], TResult], 14:01:05 when: Literal["collect", "setup", "call", "teardown"], 14:01:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:01:05 ) -> CallInfo[TResult]: 14:01:05 """Call func, wrapping the result in a CallInfo. 14:01:05 14:01:05 :param func: 14:01:05 The function to call. Called without arguments. 14:01:05 :type func: Callable[[], _pytest.runner.TResult] 14:01:05 :param when: 14:01:05 The phase in which the function is called. 14:01:05 :param reraise: 14:01:05 Exception or exceptions that shall propagate if raised by the 14:01:05 function, instead of being wrapped in the CallInfo. 14:01:05 """ 14:01:05 excinfo = None 14:01:05 instant = timing.Instant() 14:01:05 try: 14:01:05 > result: TResult | None = func() 14:01:05 ^^^^^^ 14:01:05 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:01:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:01:05 lambda: runtest_hook(item=item, **kwds), 14:01:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:01:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:01:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:01:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:01:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:01:05 yield 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:01:05 return (yield) 14:01:05 ^^^^^ 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:01:05 item.session._setupstate.setup(item) 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:01:05 col.setup() 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:01:05 super().setup() 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:01:05 self._request._fillfixtures() 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:01:05 item.funcargs[argname] = self.getfixturevalue(argname) 14:01:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:01:05 fixturedef = self._get_active_fixturedef(argname) 14:01:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:01:05 fixturedef.execute(request=subrequest) 14:01:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:05 14:01:05 self = 14:01:05 request = > 14:01:05 14:01:05 def execute(self, request: SubRequest) -> FixtureValue: 14:01:05 """Return the value of this fixture, executing it if not cached.""" 14:01:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:01:05 # This needs to be done before checking if we have a cached value, since 14:01:05 # if a dependent fixture has their cache invalidated, e.g. due to 14:01:05 # parametrization, they finalize themselves and fixtures depending on it 14:01:05 # (which will likely include this fixture) setting `self.cached_result = None`. 14:01:05 # See #4871 14:01:05 requested_fixtures_that_should_finalize_us = [] 14:01:05 for argname in self.argnames: 14:01:05 fixturedef = request._get_active_fixturedef(argname) 14:01:05 # Saves requested fixtures in a list so we later can add our finalizer 14:01:05 # to them, ensuring that if a requested fixture gets torn down we get torn 14:01:05 # down first. This is generally handled by SetupState, but still currently 14:01:05 # needed when this fixture is not parametrized but depends on a parametrized 14:01:05 # fixture. 14:01:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:01:05 14:01:05 # Check for (and return) cached value/exception. 14:01:05 if self.cached_result is not None: 14:01:05 request_cache_key = self.cache_key(request) 14:01:05 cache_key = self.cached_result[1] 14:01:05 try: 14:01:05 # Attempt to make a normal == check: this might fail for objects 14:01:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:01:05 cache_hit = bool(request_cache_key == cache_key) 14:01:05 except (ValueError, RuntimeError): 14:01:05 # If the comparison raises, use 'is' as fallback. 14:01:05 cache_hit = request_cache_key is cache_key 14:01:05 14:01:05 if cache_hit: 14:01:05 if self.cached_result[2] is not None: 14:01:05 exc, exc_tb = self.cached_result[2] 14:01:05 raise exc.with_traceback(exc_tb) 14:01:05 else: 14:01:05 return self.cached_result[0] 14:01:05 # We have a previous but differently parametrized fixture instance 14:01:05 # so we need to tear it down before creating a new one. 14:01:05 self.finish(request) 14:01:05 assert self.cached_result is None 14:01:05 14:01:05 # Add finalizer to requested fixtures we saved previously. 14:01:05 # We make sure to do this after checking for cached value to avoid 14:01:05 # adding our finalizer multiple times. (#12135) 14:01:05 finalizer = functools.partial(self.finish, request=request) 14:01:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:01:05 parent_fixture.addfinalizer(finalizer) 14:01:05 14:01:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:01:05 # which is executed last. 14:01:05 > assert not self._finalizers 14:01:05 ^^^^^^^^^^^^^^^^^^^^ 14:01:05 E AssertionError 14:01:05 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:01:05 _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ 14:01:05 14:01:05 cls = 14:01:05 func = . at 0x7f0565f9c2c0> 14:01:05 when = 'setup' 14:01:05 reraise = (, ) 14:01:05 14:01:05 @classmethod 14:01:05 def from_call( 14:01:05 cls, 14:01:05 func: Callable[[], TResult], 14:01:05 when: Literal["collect", "setup", "call", "teardown"], 14:01:05 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:01:05 ) -> CallInfo[TResult]: 14:01:05 """Call func, wrapping the result in a CallInfo. 14:01:05 14:01:05 :param func: 14:01:05 The function to call. Called without arguments. 14:01:05 :type func: Callable[[], _pytest.runner.TResult] 14:01:05 :param when: 14:01:05 The phase in which the function is called. 14:01:05 :param reraise: 14:01:05 Exception or exceptions that shall propagate if raised by the 14:01:05 function, instead of being wrapped in the CallInfo. 14:01:05 """ 14:01:05 excinfo = None 14:01:05 instant = timing.Instant() 14:01:05 try: 14:01:05 > result: TResult | None = func() 14:01:05 ^^^^^^ 14:01:05 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 14:01:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:01:05 lambda: runtest_hook(item=item, **kwds), 14:01:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:01:05 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:01:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:01:05 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:01:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:01:05 yield 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:01:05 return (yield) 14:01:05 ^^^^^ 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:01:05 item.session._setupstate.setup(item) 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:01:05 col.setup() 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:01:05 super().setup() 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:01:05 self._request._fillfixtures() 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:01:05 item.funcargs[argname] = self.getfixturevalue(argname) 14:01:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:01:05 fixturedef = self._get_active_fixturedef(argname) 14:01:05 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:01:05 fixturedef.execute(request=subrequest) 14:01:05 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:01:05 14:01:05 self = 14:01:05 request = > 14:01:05 14:01:05 def execute(self, request: SubRequest) -> FixtureValue: 14:01:05 """Return the value of this fixture, executing it if not cached.""" 14:01:05 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:01:05 # This needs to be done before checking if we have a cached value, since 14:01:05 # if a dependent fixture has their cache invalidated, e.g. due to 14:01:05 # parametrization, they finalize themselves and fixtures depending on it 14:01:05 # (which will likely include this fixture) setting `self.cached_result = None`. 14:01:05 # See #4871 14:01:05 requested_fixtures_that_should_finalize_us = [] 14:01:05 for argname in self.argnames: 14:01:05 fixturedef = request._get_active_fixturedef(argname) 14:01:05 # Saves requested fixtures in a list so we later can add our finalizer 14:01:05 # to them, ensuring that if a requested fixture gets torn down we get torn 14:01:05 # down first. This is generally handled by SetupState, but still currently 14:01:05 # needed when this fixture is not parametrized but depends on a parametrized 14:01:05 # fixture. 14:01:05 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:01:05 14:01:05 # Check for (and return) cached value/exception. 14:01:05 if self.cached_result is not None: 14:01:05 request_cache_key = self.cache_key(request) 14:01:05 cache_key = self.cached_result[1] 14:01:05 try: 14:01:05 # Attempt to make a normal == check: this might fail for objects 14:01:05 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:01:05 cache_hit = bool(request_cache_key == cache_key) 14:01:05 except (ValueError, RuntimeError): 14:01:05 # If the comparison raises, use 'is' as fallback. 14:01:05 cache_hit = request_cache_key is cache_key 14:01:05 14:01:05 if cache_hit: 14:01:05 if self.cached_result[2] is not None: 14:01:05 exc, exc_tb = self.cached_result[2] 14:01:05 raise exc.with_traceback(exc_tb) 14:01:05 else: 14:01:05 return self.cached_result[0] 14:01:05 # We have a previous but differently parametrized fixture instance 14:01:05 # so we need to tear it down before creating a new one. 14:01:05 self.finish(request) 14:01:05 assert self.cached_result is None 14:01:05 14:01:05 # Add finalizer to requested fixtures we saved previously. 14:01:05 # We make sure to do this after checking for cached value to avoid 14:01:05 # adding our finalizer multiple times. (#12135) 14:01:05 finalizer = functools.partial(self.finish, request=request) 14:01:05 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:01:05 parent_fixture.addfinalizer(finalizer) 14:01:05 14:01:05 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:01:05 # which is executed last. 14:01:05 > assert not self._finalizers 14:01:05 ^^^^^^^^^^^^^^^^^^^^ 14:01:05 E AssertionError 14:01:05 14:01:05 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:01:05 =========================== short test summary info ============================ 14:01:05 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping 14:01:05 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi 14:01:05 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId 14:01:05 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId 14:01:05 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi 14:01:05 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi 14:01:05 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni 14:01:05 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId 14:01:05 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId 14:01:05 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni 14:01:05 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni 14:01:05 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology 14:01:05 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId 14:01:05 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation 14:01:05 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation 14:01:05 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation 14:01:05 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation 14:01:05 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion 14:01:05 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link 14:01:05 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 14:01:05 20 errors in 123.73s (0:02:03) 14:01:05 testsPCE: exit 1 (124.02 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce pid=4167 14:01:05 testsPCE: FAIL ✖ in 2 minutes 53.71 seconds 14:01:05 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 14:01:13 tests_tapi: freeze> python -m pip freeze --all 14:01:13 tests_tapi: bcrypt==5.0.0,certifi==2026.7.22,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.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 14:01:13 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi 14:01:13 using environment variables from ./karaf221.env 14:01:13 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 14:02:53 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 14:03:02 ==================================== ERRORS ==================================== 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_01_get_tapi_topology_T100G _ 14:03:02 14:03:02 cls = 14:03:02 14:03:02 @classmethod 14:03:02 def setUpClass(cls): 14:03:02 cls.init_failed = False 14:03:02 os.environ['JAVA_MIN_MEM'] = '1024M' 14:03:02 os.environ['JAVA_MAX_MEM'] = '4096M' 14:03:02 > cls.processes = test_utils.start_tpce() 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 14:03:02 transportpce_tests/tapi/test01_abstracted_topology.py:148: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 def start_tpce(): 14:03:02 if 'NO_ODL_STARTUP' in os.environ: 14:03:02 print('No OpenDaylight instance to start!') 14:03:02 return [] 14:03:02 print('starting OpenDaylight...') 14:03:02 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:03:02 process = start_lighty() 14:03:02 else: 14:03:02 process = start_karaf() 14:03:02 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:03:02 print('OpenDaylight started !') 14:03:02 else: 14:03:02 print('OpenDaylight failed to start !') 14:03:02 shutdown_process(process) 14:03:02 for pid in process_list: 14:03:02 shutdown_process(pid) 14:03:02 > sys.exit(1) 14:03:02 E SystemExit: 1 14:03:02 14:03:02 transportpce_tests/common/test_utils.py:234: SystemExit 14:03:02 ---------------------------- Captured stdout setup ----------------------------- 14:03:02 starting OpenDaylight... 14:03:02 starting KARAF (karaf221) TransportPCE build... 14:03:02 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_02_get_tapi_topology_T0 _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040c0b740> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_03_connect_rdmb ___ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040c5bc40> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_04_check_tapi_topos _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc04330f060> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_05_disconnect_roadmb _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc04256b060> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_06_connect_xpdra __ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040c5b100> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_07_check_tapi_topos _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040c09b20> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_08_connect_rdma ___ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040c5b6a0> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_09_connect_rdmc ___ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc04330f060> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_10_check_tapi_topos _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040c0a2a0> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_11_connect_xpdra_n1_to_roadma_pp1 _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc04330f060> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_12_connect_roadma_pp1_to_xpdra_n1 _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040842020> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_13_check_tapi_topology_T100G _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc04330f060> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_14_check_tapi_topology_T0 _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040c09a80> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_15_connect_xpdrc __ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc0408425c0> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_16_connect_xpdrc_n1_to_roadmc_pp1 _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040c0a8e0> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_17_connect_roadmc_pp1_to_xpdrc_n1 _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040c0a480> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_18_check_tapi_topology_T100G _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040c5b100> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_19_check_tapi_topology_T0 _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040c0a480> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_20_connect_spdr_sa1 _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc04330f060> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_21_connect_spdr_sc1 _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040c0a8e0> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_22_check_tapi_topology_T100G _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc04330f060> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_23_check_tapi_topology_T0 _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040841bc0> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_24_connect_sprda_n1_to_roadma_pp2 _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040c0a8e0> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_25_connect_roadma_pp2_to_spdra_n1 _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040841bc0> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_26_connect_sprdc_n1_to_roadmc_pp2 _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040840d60> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_27_connect_roadmc_pp2_to_spdrc_n1 _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040c0a8e0> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_28_check_tapi_topology_T100G _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc0408407c0> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_29_check_tapi_topology_T0 _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040842ac0> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_30_add_oms_attributes _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040c0a8e0> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_31_create_OCH_OTU4_service _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040841300> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040842ac0> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_33_create_ODU4_service _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040c0a8e0> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040841a80> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_35_connect_sprda_2_n2_to_roadma_pp3 _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040842fc0> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_36_connect_roadma_pp3_to_spdra_2_n2 _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040c0a8e0> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040841e40> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_38_delete_ODU4_service _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040c0a8e0> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_39_delete_OCH_OTU4_service _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040842020> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_40_check_tapi_topology_T0 _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040842340> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_41_disconnect_xponders_from_roadm _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040c0a8e0> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_42_check_tapi_topology_T0 _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040842340> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_43_get_tapi_topology_T100G _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040843240> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_44_disconnect_roadma _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040c0a8e0> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_45_disconnect_roadmc _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040843420> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_46_check_tapi_topos _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040843560> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_47_disconnect_xpdra _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040c0a8e0> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_48_disconnect_xpdrc _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc0408423e0> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_49_disconnect_spdr_sa1 _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040841a80> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_50_disconnect_spdr_sc1 _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040c0a8e0> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_51_check_uninstall_Tapi_Feature _ 14:03:02 14:03:02 cls = 14:03:02 func = . at 0x7fc040843060> 14:03:02 when = 'setup' 14:03:02 reraise = (, ) 14:03:02 14:03:02 @classmethod 14:03:02 def from_call( 14:03:02 cls, 14:03:02 func: Callable[[], TResult], 14:03:02 when: Literal["collect", "setup", "call", "teardown"], 14:03:02 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:03:02 ) -> CallInfo[TResult]: 14:03:02 """Call func, wrapping the result in a CallInfo. 14:03:02 14:03:02 :param func: 14:03:02 The function to call. Called without arguments. 14:03:02 :type func: Callable[[], _pytest.runner.TResult] 14:03:02 :param when: 14:03:02 The phase in which the function is called. 14:03:02 :param reraise: 14:03:02 Exception or exceptions that shall propagate if raised by the 14:03:02 function, instead of being wrapped in the CallInfo. 14:03:02 """ 14:03:02 excinfo = None 14:03:02 instant = timing.Instant() 14:03:02 try: 14:03:02 > result: TResult | None = func() 14:03:02 ^^^^^^ 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:03:02 lambda: runtest_hook(item=item, **kwds), 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:03:02 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:03:02 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:03:02 yield 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:03:02 return (yield) 14:03:02 ^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:03:02 item.session._setupstate.setup(item) 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:03:02 col.setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:03:02 super().setup() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:03:02 self._request._fillfixtures() 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:03:02 item.funcargs[argname] = self.getfixturevalue(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:03:02 fixturedef = self._get_active_fixturedef(argname) 14:03:02 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:03:02 fixturedef.execute(request=subrequest) 14:03:02 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:03:02 14:03:02 self = 14:03:02 request = > 14:03:02 14:03:02 def execute(self, request: SubRequest) -> FixtureValue: 14:03:02 """Return the value of this fixture, executing it if not cached.""" 14:03:02 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:03:02 # This needs to be done before checking if we have a cached value, since 14:03:02 # if a dependent fixture has their cache invalidated, e.g. due to 14:03:02 # parametrization, they finalize themselves and fixtures depending on it 14:03:02 # (which will likely include this fixture) setting `self.cached_result = None`. 14:03:02 # See #4871 14:03:02 requested_fixtures_that_should_finalize_us = [] 14:03:02 for argname in self.argnames: 14:03:02 fixturedef = request._get_active_fixturedef(argname) 14:03:02 # Saves requested fixtures in a list so we later can add our finalizer 14:03:02 # to them, ensuring that if a requested fixture gets torn down we get torn 14:03:02 # down first. This is generally handled by SetupState, but still currently 14:03:02 # needed when this fixture is not parametrized but depends on a parametrized 14:03:02 # fixture. 14:03:02 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:03:02 14:03:02 # Check for (and return) cached value/exception. 14:03:02 if self.cached_result is not None: 14:03:02 request_cache_key = self.cache_key(request) 14:03:02 cache_key = self.cached_result[1] 14:03:02 try: 14:03:02 # Attempt to make a normal == check: this might fail for objects 14:03:02 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:03:02 cache_hit = bool(request_cache_key == cache_key) 14:03:02 except (ValueError, RuntimeError): 14:03:02 # If the comparison raises, use 'is' as fallback. 14:03:02 cache_hit = request_cache_key is cache_key 14:03:02 14:03:02 if cache_hit: 14:03:02 if self.cached_result[2] is not None: 14:03:02 exc, exc_tb = self.cached_result[2] 14:03:02 raise exc.with_traceback(exc_tb) 14:03:02 else: 14:03:02 return self.cached_result[0] 14:03:02 # We have a previous but differently parametrized fixture instance 14:03:02 # so we need to tear it down before creating a new one. 14:03:02 self.finish(request) 14:03:02 assert self.cached_result is None 14:03:02 14:03:02 # Add finalizer to requested fixtures we saved previously. 14:03:02 # We make sure to do this after checking for cached value to avoid 14:03:02 # adding our finalizer multiple times. (#12135) 14:03:02 finalizer = functools.partial(self.finish, request=request) 14:03:02 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:03:02 parent_fixture.addfinalizer(finalizer) 14:03:02 14:03:02 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:03:02 # which is executed last. 14:03:02 > assert not self._finalizers 14:03:02 ^^^^^^^^^^^^^^^^^^^^ 14:03:02 E AssertionError 14:03:02 14:03:02 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:03:02 =========================== short test summary info ============================ 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_01_get_tapi_topology_T100G 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_02_get_tapi_topology_T0 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_03_connect_rdmb 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_04_check_tapi_topos 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_05_disconnect_roadmb 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_06_connect_xpdra 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_07_check_tapi_topos 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_08_connect_rdma 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_09_connect_rdmc 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_10_check_tapi_topos 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_11_connect_xpdra_n1_to_roadma_pp1 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_12_connect_roadma_pp1_to_xpdra_n1 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_13_check_tapi_topology_T100G 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_14_check_tapi_topology_T0 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_15_connect_xpdrc 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_16_connect_xpdrc_n1_to_roadmc_pp1 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_17_connect_roadmc_pp1_to_xpdrc_n1 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_18_check_tapi_topology_T100G 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_19_check_tapi_topology_T0 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_20_connect_spdr_sa1 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_21_connect_spdr_sc1 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_22_check_tapi_topology_T100G 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_23_check_tapi_topology_T0 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_24_connect_sprda_n1_to_roadma_pp2 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_25_connect_roadma_pp2_to_spdra_n1 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_26_connect_sprdc_n1_to_roadmc_pp2 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_27_connect_roadmc_pp2_to_spdrc_n1 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_28_check_tapi_topology_T100G 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_29_check_tapi_topology_T0 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_30_add_oms_attributes 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_31_create_OCH_OTU4_service 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_33_create_ODU4_service 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_35_connect_sprda_2_n2_to_roadma_pp3 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_36_connect_roadma_pp3_to_spdra_2_n2 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_38_delete_ODU4_service 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_39_delete_OCH_OTU4_service 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_40_check_tapi_topology_T0 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_41_disconnect_xponders_from_roadm 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_42_check_tapi_topology_T0 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_43_get_tapi_topology_T100G 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_44_disconnect_roadma 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_45_disconnect_roadmc 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_46_check_tapi_topos 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_47_disconnect_xpdra 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_48_disconnect_xpdrc 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_49_disconnect_spdr_sa1 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_50_disconnect_spdr_sc1 14:03:02 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_51_check_uninstall_Tapi_Feature 14:03:02 51 errors in 109.31s (0:01:49) 14:03:02 tests_tapi: exit 1 (109.60 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi pid=4342 14:03:03 tests_tapi: FAIL ✖ in 1 minute 57.81 seconds 14:03:03 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 14:03:03 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 14:03:11 tests200: freeze> python -m pip freeze --all 14:03:11 tests221: freeze> python -m pip freeze --all 14:03:11 tests200: bcrypt==5.0.0,certifi==2026.7.22,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.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 14:03:11 tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 14:03:11 using environment variables from ./karafoc200.env 14:03:11 pytest -q transportpce_tests/oc200/test01_portmapping.py 14:03:11 tests221: bcrypt==5.0.0,certifi==2026.7.22,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.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 14:03:11 tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 14:03:11 using environment variables from ./karaf221.env 14:03:11 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 14:04:51 EEEEEEEEEEEEEEEEEE [100%] 14:04:53 ==================================== ERRORS ==================================== 14:04:53 __ ERROR at setup of TestTransportPCEPortmapping.test_01_meta_data_insertion ___ 14:04:53 14:04:53 cls = 14:04:53 14:04:53 @classmethod 14:04:53 def setUpClass(cls): 14:04:53 > cls.processes = test_utils.start_tpce() 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 14:04:53 transportpce_tests/oc200/test01_portmapping.py:29: 14:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:53 14:04:53 def start_tpce(): 14:04:53 if 'NO_ODL_STARTUP' in os.environ: 14:04:53 print('No OpenDaylight instance to start!') 14:04:53 return [] 14:04:53 print('starting OpenDaylight...') 14:04:53 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:04:53 process = start_lighty() 14:04:53 else: 14:04:53 process = start_karaf() 14:04:53 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:04:53 print('OpenDaylight started !') 14:04:53 else: 14:04:53 print('OpenDaylight failed to start !') 14:04:53 shutdown_process(process) 14:04:53 for pid in process_list: 14:04:53 shutdown_process(pid) 14:04:53 > sys.exit(1) 14:04:53 E SystemExit: 1 14:04:53 14:04:53 transportpce_tests/common/test_utils.py:234: SystemExit 14:04:53 ---------------------------- Captured stdout setup ----------------------------- 14:04:53 starting OpenDaylight... 14:04:53 starting KARAF (karafoc200) TransportPCE build... 14:04:53 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:04:53 _ ERROR at setup of TestTransportPCEPortmapping.test_02_catalog_input_insertion _ 14:04:53 14:04:53 cls = 14:04:53 func = . at 0x7f88a5d8b420> 14:04:53 when = 'setup' 14:04:53 reraise = (, ) 14:04:53 14:04:53 @classmethod 14:04:53 def from_call( 14:04:53 cls, 14:04:53 func: Callable[[], TResult], 14:04:53 when: Literal["collect", "setup", "call", "teardown"], 14:04:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:53 ) -> CallInfo[TResult]: 14:04:53 """Call func, wrapping the result in a CallInfo. 14:04:53 14:04:53 :param func: 14:04:53 The function to call. Called without arguments. 14:04:53 :type func: Callable[[], _pytest.runner.TResult] 14:04:53 :param when: 14:04:53 The phase in which the function is called. 14:04:53 :param reraise: 14:04:53 Exception or exceptions that shall propagate if raised by the 14:04:53 function, instead of being wrapped in the CallInfo. 14:04:53 """ 14:04:53 excinfo = None 14:04:53 instant = timing.Instant() 14:04:53 try: 14:04:53 > result: TResult | None = func() 14:04:53 ^^^^^^ 14:04:53 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:53 lambda: runtest_hook(item=item, **kwds), 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:53 yield 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:53 return (yield) 14:04:53 ^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:53 item.session._setupstate.setup(item) 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:53 col.setup() 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:53 super().setup() 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:53 self._request._fillfixtures() 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:53 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:53 fixturedef = self._get_active_fixturedef(argname) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:53 fixturedef.execute(request=subrequest) 14:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:53 14:04:53 self = 14:04:53 request = > 14:04:53 14:04:53 def execute(self, request: SubRequest) -> FixtureValue: 14:04:53 """Return the value of this fixture, executing it if not cached.""" 14:04:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:53 # This needs to be done before checking if we have a cached value, since 14:04:53 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:53 # parametrization, they finalize themselves and fixtures depending on it 14:04:53 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:53 # See #4871 14:04:53 requested_fixtures_that_should_finalize_us = [] 14:04:53 for argname in self.argnames: 14:04:53 fixturedef = request._get_active_fixturedef(argname) 14:04:53 # Saves requested fixtures in a list so we later can add our finalizer 14:04:53 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:53 # down first. This is generally handled by SetupState, but still currently 14:04:53 # needed when this fixture is not parametrized but depends on a parametrized 14:04:53 # fixture. 14:04:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:53 14:04:53 # Check for (and return) cached value/exception. 14:04:53 if self.cached_result is not None: 14:04:53 request_cache_key = self.cache_key(request) 14:04:53 cache_key = self.cached_result[1] 14:04:53 try: 14:04:53 # Attempt to make a normal == check: this might fail for objects 14:04:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:53 cache_hit = bool(request_cache_key == cache_key) 14:04:53 except (ValueError, RuntimeError): 14:04:53 # If the comparison raises, use 'is' as fallback. 14:04:53 cache_hit = request_cache_key is cache_key 14:04:53 14:04:53 if cache_hit: 14:04:53 if self.cached_result[2] is not None: 14:04:53 exc, exc_tb = self.cached_result[2] 14:04:53 raise exc.with_traceback(exc_tb) 14:04:53 else: 14:04:53 return self.cached_result[0] 14:04:53 # We have a previous but differently parametrized fixture instance 14:04:53 # so we need to tear it down before creating a new one. 14:04:53 self.finish(request) 14:04:53 assert self.cached_result is None 14:04:53 14:04:53 # Add finalizer to requested fixtures we saved previously. 14:04:53 # We make sure to do this after checking for cached value to avoid 14:04:53 # adding our finalizer multiple times. (#12135) 14:04:53 finalizer = functools.partial(self.finish, request=request) 14:04:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:53 parent_fixture.addfinalizer(finalizer) 14:04:53 14:04:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:53 # which is executed last. 14:04:53 > assert not self._finalizers 14:04:53 ^^^^^^^^^^^^^^^^^^^^ 14:04:53 E AssertionError 14:04:53 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:53 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_device_connection _ 14:04:53 14:04:53 cls = 14:04:53 func = . at 0x7f88a369bec0> 14:04:53 when = 'setup' 14:04:53 reraise = (, ) 14:04:53 14:04:53 @classmethod 14:04:53 def from_call( 14:04:53 cls, 14:04:53 func: Callable[[], TResult], 14:04:53 when: Literal["collect", "setup", "call", "teardown"], 14:04:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:53 ) -> CallInfo[TResult]: 14:04:53 """Call func, wrapping the result in a CallInfo. 14:04:53 14:04:53 :param func: 14:04:53 The function to call. Called without arguments. 14:04:53 :type func: Callable[[], _pytest.runner.TResult] 14:04:53 :param when: 14:04:53 The phase in which the function is called. 14:04:53 :param reraise: 14:04:53 Exception or exceptions that shall propagate if raised by the 14:04:53 function, instead of being wrapped in the CallInfo. 14:04:53 """ 14:04:53 excinfo = None 14:04:53 instant = timing.Instant() 14:04:53 try: 14:04:53 > result: TResult | None = func() 14:04:53 ^^^^^^ 14:04:53 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:53 lambda: runtest_hook(item=item, **kwds), 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:53 yield 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:53 return (yield) 14:04:53 ^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:53 item.session._setupstate.setup(item) 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:53 col.setup() 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:53 super().setup() 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:53 self._request._fillfixtures() 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:53 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:53 fixturedef = self._get_active_fixturedef(argname) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:53 fixturedef.execute(request=subrequest) 14:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:53 14:04:53 self = 14:04:53 request = > 14:04:53 14:04:53 def execute(self, request: SubRequest) -> FixtureValue: 14:04:53 """Return the value of this fixture, executing it if not cached.""" 14:04:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:53 # This needs to be done before checking if we have a cached value, since 14:04:53 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:53 # parametrization, they finalize themselves and fixtures depending on it 14:04:53 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:53 # See #4871 14:04:53 requested_fixtures_that_should_finalize_us = [] 14:04:53 for argname in self.argnames: 14:04:53 fixturedef = request._get_active_fixturedef(argname) 14:04:53 # Saves requested fixtures in a list so we later can add our finalizer 14:04:53 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:53 # down first. This is generally handled by SetupState, but still currently 14:04:53 # needed when this fixture is not parametrized but depends on a parametrized 14:04:53 # fixture. 14:04:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:53 14:04:53 # Check for (and return) cached value/exception. 14:04:53 if self.cached_result is not None: 14:04:53 request_cache_key = self.cache_key(request) 14:04:53 cache_key = self.cached_result[1] 14:04:53 try: 14:04:53 # Attempt to make a normal == check: this might fail for objects 14:04:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:53 cache_hit = bool(request_cache_key == cache_key) 14:04:53 except (ValueError, RuntimeError): 14:04:53 # If the comparison raises, use 'is' as fallback. 14:04:53 cache_hit = request_cache_key is cache_key 14:04:53 14:04:53 if cache_hit: 14:04:53 if self.cached_result[2] is not None: 14:04:53 exc, exc_tb = self.cached_result[2] 14:04:53 raise exc.with_traceback(exc_tb) 14:04:53 else: 14:04:53 return self.cached_result[0] 14:04:53 # We have a previous but differently parametrized fixture instance 14:04:53 # so we need to tear it down before creating a new one. 14:04:53 self.finish(request) 14:04:53 assert self.cached_result is None 14:04:53 14:04:53 # Add finalizer to requested fixtures we saved previously. 14:04:53 # We make sure to do this after checking for cached value to avoid 14:04:53 # adding our finalizer multiple times. (#12135) 14:04:53 finalizer = functools.partial(self.finish, request=request) 14:04:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:53 parent_fixture.addfinalizer(finalizer) 14:04:53 14:04:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:53 # which is executed last. 14:04:53 > assert not self._finalizers 14:04:53 ^^^^^^^^^^^^^^^^^^^^ 14:04:53 E AssertionError 14:04:53 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:53 _ ERROR at setup of TestTransportPCEPortmapping.test_04_xpdr_device_connected __ 14:04:53 14:04:53 cls = 14:04:53 func = . at 0x7f88a4e3f600> 14:04:53 when = 'setup' 14:04:53 reraise = (, ) 14:04:53 14:04:53 @classmethod 14:04:53 def from_call( 14:04:53 cls, 14:04:53 func: Callable[[], TResult], 14:04:53 when: Literal["collect", "setup", "call", "teardown"], 14:04:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:53 ) -> CallInfo[TResult]: 14:04:53 """Call func, wrapping the result in a CallInfo. 14:04:53 14:04:53 :param func: 14:04:53 The function to call. Called without arguments. 14:04:53 :type func: Callable[[], _pytest.runner.TResult] 14:04:53 :param when: 14:04:53 The phase in which the function is called. 14:04:53 :param reraise: 14:04:53 Exception or exceptions that shall propagate if raised by the 14:04:53 function, instead of being wrapped in the CallInfo. 14:04:53 """ 14:04:53 excinfo = None 14:04:53 instant = timing.Instant() 14:04:53 try: 14:04:53 > result: TResult | None = func() 14:04:53 ^^^^^^ 14:04:53 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:53 lambda: runtest_hook(item=item, **kwds), 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:53 yield 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:53 return (yield) 14:04:53 ^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:53 item.session._setupstate.setup(item) 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:53 col.setup() 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:53 super().setup() 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:53 self._request._fillfixtures() 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:53 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:53 fixturedef = self._get_active_fixturedef(argname) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:53 fixturedef.execute(request=subrequest) 14:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:53 14:04:53 self = 14:04:53 request = > 14:04:53 14:04:53 def execute(self, request: SubRequest) -> FixtureValue: 14:04:53 """Return the value of this fixture, executing it if not cached.""" 14:04:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:53 # This needs to be done before checking if we have a cached value, since 14:04:53 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:53 # parametrization, they finalize themselves and fixtures depending on it 14:04:53 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:53 # See #4871 14:04:53 requested_fixtures_that_should_finalize_us = [] 14:04:53 for argname in self.argnames: 14:04:53 fixturedef = request._get_active_fixturedef(argname) 14:04:53 # Saves requested fixtures in a list so we later can add our finalizer 14:04:53 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:53 # down first. This is generally handled by SetupState, but still currently 14:04:53 # needed when this fixture is not parametrized but depends on a parametrized 14:04:53 # fixture. 14:04:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:53 14:04:53 # Check for (and return) cached value/exception. 14:04:53 if self.cached_result is not None: 14:04:53 request_cache_key = self.cache_key(request) 14:04:53 cache_key = self.cached_result[1] 14:04:53 try: 14:04:53 # Attempt to make a normal == check: this might fail for objects 14:04:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:53 cache_hit = bool(request_cache_key == cache_key) 14:04:53 except (ValueError, RuntimeError): 14:04:53 # If the comparison raises, use 'is' as fallback. 14:04:53 cache_hit = request_cache_key is cache_key 14:04:53 14:04:53 if cache_hit: 14:04:53 if self.cached_result[2] is not None: 14:04:53 exc, exc_tb = self.cached_result[2] 14:04:53 raise exc.with_traceback(exc_tb) 14:04:53 else: 14:04:53 return self.cached_result[0] 14:04:53 # We have a previous but differently parametrized fixture instance 14:04:53 # so we need to tear it down before creating a new one. 14:04:53 self.finish(request) 14:04:53 assert self.cached_result is None 14:04:53 14:04:53 # Add finalizer to requested fixtures we saved previously. 14:04:53 # We make sure to do this after checking for cached value to avoid 14:04:53 # adding our finalizer multiple times. (#12135) 14:04:53 finalizer = functools.partial(self.finish, request=request) 14:04:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:53 parent_fixture.addfinalizer(finalizer) 14:04:53 14:04:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:53 # which is executed last. 14:04:53 > assert not self._finalizers 14:04:53 ^^^^^^^^^^^^^^^^^^^^ 14:04:53 E AssertionError 14:04:53 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:53 _ ERROR at setup of TestTransportPCEPortmapping.test_05_xpdr_portmapping_info __ 14:04:53 14:04:53 cls = 14:04:53 func = . at 0x7f88a367b740> 14:04:53 when = 'setup' 14:04:53 reraise = (, ) 14:04:53 14:04:53 @classmethod 14:04:53 def from_call( 14:04:53 cls, 14:04:53 func: Callable[[], TResult], 14:04:53 when: Literal["collect", "setup", "call", "teardown"], 14:04:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:53 ) -> CallInfo[TResult]: 14:04:53 """Call func, wrapping the result in a CallInfo. 14:04:53 14:04:53 :param func: 14:04:53 The function to call. Called without arguments. 14:04:53 :type func: Callable[[], _pytest.runner.TResult] 14:04:53 :param when: 14:04:53 The phase in which the function is called. 14:04:53 :param reraise: 14:04:53 Exception or exceptions that shall propagate if raised by the 14:04:53 function, instead of being wrapped in the CallInfo. 14:04:53 """ 14:04:53 excinfo = None 14:04:53 instant = timing.Instant() 14:04:53 try: 14:04:53 > result: TResult | None = func() 14:04:53 ^^^^^^ 14:04:53 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:53 lambda: runtest_hook(item=item, **kwds), 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:53 yield 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:53 return (yield) 14:04:53 ^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:53 item.session._setupstate.setup(item) 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:53 col.setup() 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:53 super().setup() 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:53 self._request._fillfixtures() 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:53 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:53 fixturedef = self._get_active_fixturedef(argname) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:53 fixturedef.execute(request=subrequest) 14:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:53 14:04:53 self = 14:04:53 request = > 14:04:53 14:04:53 def execute(self, request: SubRequest) -> FixtureValue: 14:04:53 """Return the value of this fixture, executing it if not cached.""" 14:04:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:53 # This needs to be done before checking if we have a cached value, since 14:04:53 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:53 # parametrization, they finalize themselves and fixtures depending on it 14:04:53 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:53 # See #4871 14:04:53 requested_fixtures_that_should_finalize_us = [] 14:04:53 for argname in self.argnames: 14:04:53 fixturedef = request._get_active_fixturedef(argname) 14:04:53 # Saves requested fixtures in a list so we later can add our finalizer 14:04:53 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:53 # down first. This is generally handled by SetupState, but still currently 14:04:53 # needed when this fixture is not parametrized but depends on a parametrized 14:04:53 # fixture. 14:04:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:53 14:04:53 # Check for (and return) cached value/exception. 14:04:53 if self.cached_result is not None: 14:04:53 request_cache_key = self.cache_key(request) 14:04:53 cache_key = self.cached_result[1] 14:04:53 try: 14:04:53 # Attempt to make a normal == check: this might fail for objects 14:04:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:53 cache_hit = bool(request_cache_key == cache_key) 14:04:53 except (ValueError, RuntimeError): 14:04:53 # If the comparison raises, use 'is' as fallback. 14:04:53 cache_hit = request_cache_key is cache_key 14:04:53 14:04:53 if cache_hit: 14:04:53 if self.cached_result[2] is not None: 14:04:53 exc, exc_tb = self.cached_result[2] 14:04:53 raise exc.with_traceback(exc_tb) 14:04:53 else: 14:04:53 return self.cached_result[0] 14:04:53 # We have a previous but differently parametrized fixture instance 14:04:53 # so we need to tear it down before creating a new one. 14:04:53 self.finish(request) 14:04:53 assert self.cached_result is None 14:04:53 14:04:53 # Add finalizer to requested fixtures we saved previously. 14:04:53 # We make sure to do this after checking for cached value to avoid 14:04:53 # adding our finalizer multiple times. (#12135) 14:04:53 finalizer = functools.partial(self.finish, request=request) 14:04:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:53 parent_fixture.addfinalizer(finalizer) 14:04:53 14:04:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:53 # which is executed last. 14:04:53 > assert not self._finalizers 14:04:53 ^^^^^^^^^^^^^^^^^^^^ 14:04:53 E AssertionError 14:04:53 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:53 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK5 _ 14:04:53 14:04:53 cls = 14:04:53 func = . at 0x7f88a5d8b420> 14:04:53 when = 'setup' 14:04:53 reraise = (, ) 14:04:53 14:04:53 @classmethod 14:04:53 def from_call( 14:04:53 cls, 14:04:53 func: Callable[[], TResult], 14:04:53 when: Literal["collect", "setup", "call", "teardown"], 14:04:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:53 ) -> CallInfo[TResult]: 14:04:53 """Call func, wrapping the result in a CallInfo. 14:04:53 14:04:53 :param func: 14:04:53 The function to call. Called without arguments. 14:04:53 :type func: Callable[[], _pytest.runner.TResult] 14:04:53 :param when: 14:04:53 The phase in which the function is called. 14:04:53 :param reraise: 14:04:53 Exception or exceptions that shall propagate if raised by the 14:04:53 function, instead of being wrapped in the CallInfo. 14:04:53 """ 14:04:53 excinfo = None 14:04:53 instant = timing.Instant() 14:04:53 try: 14:04:53 > result: TResult | None = func() 14:04:53 ^^^^^^ 14:04:53 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:53 lambda: runtest_hook(item=item, **kwds), 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:53 yield 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:53 return (yield) 14:04:53 ^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:53 item.session._setupstate.setup(item) 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:53 col.setup() 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:53 super().setup() 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:53 self._request._fillfixtures() 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:53 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:53 fixturedef = self._get_active_fixturedef(argname) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:53 fixturedef.execute(request=subrequest) 14:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:53 14:04:53 self = 14:04:53 request = > 14:04:53 14:04:53 def execute(self, request: SubRequest) -> FixtureValue: 14:04:53 """Return the value of this fixture, executing it if not cached.""" 14:04:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:53 # This needs to be done before checking if we have a cached value, since 14:04:53 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:53 # parametrization, they finalize themselves and fixtures depending on it 14:04:53 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:53 # See #4871 14:04:53 requested_fixtures_that_should_finalize_us = [] 14:04:53 for argname in self.argnames: 14:04:53 fixturedef = request._get_active_fixturedef(argname) 14:04:53 # Saves requested fixtures in a list so we later can add our finalizer 14:04:53 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:53 # down first. This is generally handled by SetupState, but still currently 14:04:53 # needed when this fixture is not parametrized but depends on a parametrized 14:04:53 # fixture. 14:04:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:53 14:04:53 # Check for (and return) cached value/exception. 14:04:53 if self.cached_result is not None: 14:04:53 request_cache_key = self.cache_key(request) 14:04:53 cache_key = self.cached_result[1] 14:04:53 try: 14:04:53 # Attempt to make a normal == check: this might fail for objects 14:04:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:53 cache_hit = bool(request_cache_key == cache_key) 14:04:53 except (ValueError, RuntimeError): 14:04:53 # If the comparison raises, use 'is' as fallback. 14:04:53 cache_hit = request_cache_key is cache_key 14:04:53 14:04:53 if cache_hit: 14:04:53 if self.cached_result[2] is not None: 14:04:53 exc, exc_tb = self.cached_result[2] 14:04:53 raise exc.with_traceback(exc_tb) 14:04:53 else: 14:04:53 return self.cached_result[0] 14:04:53 # We have a previous but differently parametrized fixture instance 14:04:53 # so we need to tear it down before creating a new one. 14:04:53 self.finish(request) 14:04:53 assert self.cached_result is None 14:04:53 14:04:53 # Add finalizer to requested fixtures we saved previously. 14:04:53 # We make sure to do this after checking for cached value to avoid 14:04:53 # adding our finalizer multiple times. (#12135) 14:04:53 finalizer = functools.partial(self.finish, request=request) 14:04:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:53 parent_fixture.addfinalizer(finalizer) 14:04:53 14:04:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:53 # which is executed last. 14:04:53 > assert not self._finalizers 14:04:53 ^^^^^^^^^^^^^^^^^^^^ 14:04:53 E AssertionError 14:04:53 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:53 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 14:04:53 14:04:53 cls = 14:04:53 func = . at 0x7f88a4e3f600> 14:04:53 when = 'setup' 14:04:53 reraise = (, ) 14:04:53 14:04:53 @classmethod 14:04:53 def from_call( 14:04:53 cls, 14:04:53 func: Callable[[], TResult], 14:04:53 when: Literal["collect", "setup", "call", "teardown"], 14:04:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:53 ) -> CallInfo[TResult]: 14:04:53 """Call func, wrapping the result in a CallInfo. 14:04:53 14:04:53 :param func: 14:04:53 The function to call. Called without arguments. 14:04:53 :type func: Callable[[], _pytest.runner.TResult] 14:04:53 :param when: 14:04:53 The phase in which the function is called. 14:04:53 :param reraise: 14:04:53 Exception or exceptions that shall propagate if raised by the 14:04:53 function, instead of being wrapped in the CallInfo. 14:04:53 """ 14:04:53 excinfo = None 14:04:53 instant = timing.Instant() 14:04:53 try: 14:04:53 > result: TResult | None = func() 14:04:53 ^^^^^^ 14:04:53 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:53 lambda: runtest_hook(item=item, **kwds), 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:53 yield 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:53 return (yield) 14:04:53 ^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:53 item.session._setupstate.setup(item) 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:53 col.setup() 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:53 super().setup() 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:53 self._request._fillfixtures() 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:53 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:53 fixturedef = self._get_active_fixturedef(argname) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:53 fixturedef.execute(request=subrequest) 14:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:53 14:04:53 self = 14:04:53 request = > 14:04:53 14:04:53 def execute(self, request: SubRequest) -> FixtureValue: 14:04:53 """Return the value of this fixture, executing it if not cached.""" 14:04:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:53 # This needs to be done before checking if we have a cached value, since 14:04:53 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:53 # parametrization, they finalize themselves and fixtures depending on it 14:04:53 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:53 # See #4871 14:04:53 requested_fixtures_that_should_finalize_us = [] 14:04:53 for argname in self.argnames: 14:04:53 fixturedef = request._get_active_fixturedef(argname) 14:04:53 # Saves requested fixtures in a list so we later can add our finalizer 14:04:53 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:53 # down first. This is generally handled by SetupState, but still currently 14:04:53 # needed when this fixture is not parametrized but depends on a parametrized 14:04:53 # fixture. 14:04:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:53 14:04:53 # Check for (and return) cached value/exception. 14:04:53 if self.cached_result is not None: 14:04:53 request_cache_key = self.cache_key(request) 14:04:53 cache_key = self.cached_result[1] 14:04:53 try: 14:04:53 # Attempt to make a normal == check: this might fail for objects 14:04:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:53 cache_hit = bool(request_cache_key == cache_key) 14:04:53 except (ValueError, RuntimeError): 14:04:53 # If the comparison raises, use 'is' as fallback. 14:04:53 cache_hit = request_cache_key is cache_key 14:04:53 14:04:53 if cache_hit: 14:04:53 if self.cached_result[2] is not None: 14:04:53 exc, exc_tb = self.cached_result[2] 14:04:53 raise exc.with_traceback(exc_tb) 14:04:53 else: 14:04:53 return self.cached_result[0] 14:04:53 # We have a previous but differently parametrized fixture instance 14:04:53 # so we need to tear it down before creating a new one. 14:04:53 self.finish(request) 14:04:53 assert self.cached_result is None 14:04:53 14:04:53 # Add finalizer to requested fixtures we saved previously. 14:04:53 # We make sure to do this after checking for cached value to avoid 14:04:53 # adding our finalizer multiple times. (#12135) 14:04:53 finalizer = functools.partial(self.finish, request=request) 14:04:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:53 parent_fixture.addfinalizer(finalizer) 14:04:53 14:04:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:53 # which is executed last. 14:04:53 > assert not self._finalizers 14:04:53 ^^^^^^^^^^^^^^^^^^^^ 14:04:53 E AssertionError 14:04:53 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:53 __ ERROR at setup of TestTransportPCEPortmapping.test_08_mpdr_switching_pool ___ 14:04:53 14:04:53 cls = 14:04:53 func = . at 0x7f88a369b880> 14:04:53 when = 'setup' 14:04:53 reraise = (, ) 14:04:53 14:04:53 @classmethod 14:04:53 def from_call( 14:04:53 cls, 14:04:53 func: Callable[[], TResult], 14:04:53 when: Literal["collect", "setup", "call", "teardown"], 14:04:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:53 ) -> CallInfo[TResult]: 14:04:53 """Call func, wrapping the result in a CallInfo. 14:04:53 14:04:53 :param func: 14:04:53 The function to call. Called without arguments. 14:04:53 :type func: Callable[[], _pytest.runner.TResult] 14:04:53 :param when: 14:04:53 The phase in which the function is called. 14:04:53 :param reraise: 14:04:53 Exception or exceptions that shall propagate if raised by the 14:04:53 function, instead of being wrapped in the CallInfo. 14:04:53 """ 14:04:53 excinfo = None 14:04:53 instant = timing.Instant() 14:04:53 try: 14:04:53 > result: TResult | None = func() 14:04:53 ^^^^^^ 14:04:53 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:53 lambda: runtest_hook(item=item, **kwds), 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:53 yield 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:53 return (yield) 14:04:53 ^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:53 item.session._setupstate.setup(item) 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:53 col.setup() 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:53 super().setup() 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:53 self._request._fillfixtures() 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:53 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:53 fixturedef = self._get_active_fixturedef(argname) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:53 fixturedef.execute(request=subrequest) 14:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:53 14:04:53 self = 14:04:53 request = > 14:04:53 14:04:53 def execute(self, request: SubRequest) -> FixtureValue: 14:04:53 """Return the value of this fixture, executing it if not cached.""" 14:04:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:53 # This needs to be done before checking if we have a cached value, since 14:04:53 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:53 # parametrization, they finalize themselves and fixtures depending on it 14:04:53 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:53 # See #4871 14:04:53 requested_fixtures_that_should_finalize_us = [] 14:04:53 for argname in self.argnames: 14:04:53 fixturedef = request._get_active_fixturedef(argname) 14:04:53 # Saves requested fixtures in a list so we later can add our finalizer 14:04:53 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:53 # down first. This is generally handled by SetupState, but still currently 14:04:53 # needed when this fixture is not parametrized but depends on a parametrized 14:04:53 # fixture. 14:04:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:53 14:04:53 # Check for (and return) cached value/exception. 14:04:53 if self.cached_result is not None: 14:04:53 request_cache_key = self.cache_key(request) 14:04:53 cache_key = self.cached_result[1] 14:04:53 try: 14:04:53 # Attempt to make a normal == check: this might fail for objects 14:04:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:53 cache_hit = bool(request_cache_key == cache_key) 14:04:53 except (ValueError, RuntimeError): 14:04:53 # If the comparison raises, use 'is' as fallback. 14:04:53 cache_hit = request_cache_key is cache_key 14:04:53 14:04:53 if cache_hit: 14:04:53 if self.cached_result[2] is not None: 14:04:53 exc, exc_tb = self.cached_result[2] 14:04:53 raise exc.with_traceback(exc_tb) 14:04:53 else: 14:04:53 return self.cached_result[0] 14:04:53 # We have a previous but differently parametrized fixture instance 14:04:53 # so we need to tear it down before creating a new one. 14:04:53 self.finish(request) 14:04:53 assert self.cached_result is None 14:04:53 14:04:53 # Add finalizer to requested fixtures we saved previously. 14:04:53 # We make sure to do this after checking for cached value to avoid 14:04:53 # adding our finalizer multiple times. (#12135) 14:04:53 finalizer = functools.partial(self.finish, request=request) 14:04:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:53 parent_fixture.addfinalizer(finalizer) 14:04:53 14:04:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:53 # which is executed last. 14:04:53 > assert not self._finalizers 14:04:53 ^^^^^^^^^^^^^^^^^^^^ 14:04:53 E AssertionError 14:04:53 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:53 ___ ERROR at setup of TestTransportPCEPortmapping.test_09_check_mccapprofile ___ 14:04:53 14:04:53 cls = 14:04:53 func = . at 0x7f88a369b6a0> 14:04:53 when = 'setup' 14:04:53 reraise = (, ) 14:04:53 14:04:53 @classmethod 14:04:53 def from_call( 14:04:53 cls, 14:04:53 func: Callable[[], TResult], 14:04:53 when: Literal["collect", "setup", "call", "teardown"], 14:04:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:53 ) -> CallInfo[TResult]: 14:04:53 """Call func, wrapping the result in a CallInfo. 14:04:53 14:04:53 :param func: 14:04:53 The function to call. Called without arguments. 14:04:53 :type func: Callable[[], _pytest.runner.TResult] 14:04:53 :param when: 14:04:53 The phase in which the function is called. 14:04:53 :param reraise: 14:04:53 Exception or exceptions that shall propagate if raised by the 14:04:53 function, instead of being wrapped in the CallInfo. 14:04:53 """ 14:04:53 excinfo = None 14:04:53 instant = timing.Instant() 14:04:53 try: 14:04:53 > result: TResult | None = func() 14:04:53 ^^^^^^ 14:04:53 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:53 lambda: runtest_hook(item=item, **kwds), 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:53 yield 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:53 return (yield) 14:04:53 ^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:53 item.session._setupstate.setup(item) 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:53 col.setup() 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:53 super().setup() 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:53 self._request._fillfixtures() 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:53 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:53 fixturedef = self._get_active_fixturedef(argname) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:53 fixturedef.execute(request=subrequest) 14:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:53 14:04:53 self = 14:04:53 request = > 14:04:53 14:04:53 def execute(self, request: SubRequest) -> FixtureValue: 14:04:53 """Return the value of this fixture, executing it if not cached.""" 14:04:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:53 # This needs to be done before checking if we have a cached value, since 14:04:53 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:53 # parametrization, they finalize themselves and fixtures depending on it 14:04:53 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:53 # See #4871 14:04:53 requested_fixtures_that_should_finalize_us = [] 14:04:53 for argname in self.argnames: 14:04:53 fixturedef = request._get_active_fixturedef(argname) 14:04:53 # Saves requested fixtures in a list so we later can add our finalizer 14:04:53 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:53 # down first. This is generally handled by SetupState, but still currently 14:04:53 # needed when this fixture is not parametrized but depends on a parametrized 14:04:53 # fixture. 14:04:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:53 14:04:53 # Check for (and return) cached value/exception. 14:04:53 if self.cached_result is not None: 14:04:53 request_cache_key = self.cache_key(request) 14:04:53 cache_key = self.cached_result[1] 14:04:53 try: 14:04:53 # Attempt to make a normal == check: this might fail for objects 14:04:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:53 cache_hit = bool(request_cache_key == cache_key) 14:04:53 except (ValueError, RuntimeError): 14:04:53 # If the comparison raises, use 'is' as fallback. 14:04:53 cache_hit = request_cache_key is cache_key 14:04:53 14:04:53 if cache_hit: 14:04:53 if self.cached_result[2] is not None: 14:04:53 exc, exc_tb = self.cached_result[2] 14:04:53 raise exc.with_traceback(exc_tb) 14:04:53 else: 14:04:53 return self.cached_result[0] 14:04:53 # We have a previous but differently parametrized fixture instance 14:04:53 # so we need to tear it down before creating a new one. 14:04:53 self.finish(request) 14:04:53 assert self.cached_result is None 14:04:53 14:04:53 # Add finalizer to requested fixtures we saved previously. 14:04:53 # We make sure to do this after checking for cached value to avoid 14:04:53 # adding our finalizer multiple times. (#12135) 14:04:53 finalizer = functools.partial(self.finish, request=request) 14:04:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:53 parent_fixture.addfinalizer(finalizer) 14:04:53 14:04:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:53 # which is executed last. 14:04:53 > assert not self._finalizers 14:04:53 ^^^^^^^^^^^^^^^^^^^^ 14:04:53 E AssertionError 14:04:53 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:53 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 14:04:53 14:04:53 cls = 14:04:53 func = . at 0x7f88a369b600> 14:04:53 when = 'setup' 14:04:53 reraise = (, ) 14:04:53 14:04:53 @classmethod 14:04:53 def from_call( 14:04:53 cls, 14:04:53 func: Callable[[], TResult], 14:04:53 when: Literal["collect", "setup", "call", "teardown"], 14:04:53 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:53 ) -> CallInfo[TResult]: 14:04:53 """Call func, wrapping the result in a CallInfo. 14:04:53 14:04:53 :param func: 14:04:53 The function to call. Called without arguments. 14:04:53 :type func: Callable[[], _pytest.runner.TResult] 14:04:53 :param when: 14:04:53 The phase in which the function is called. 14:04:53 :param reraise: 14:04:53 Exception or exceptions that shall propagate if raised by the 14:04:53 function, instead of being wrapped in the CallInfo. 14:04:53 """ 14:04:53 excinfo = None 14:04:53 instant = timing.Instant() 14:04:53 try: 14:04:53 > result: TResult | None = func() 14:04:53 ^^^^^^ 14:04:53 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:53 lambda: runtest_hook(item=item, **kwds), 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:53 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:53 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:53 yield 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:53 return (yield) 14:04:53 ^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:53 item.session._setupstate.setup(item) 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:53 col.setup() 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:53 super().setup() 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:53 self._request._fillfixtures() 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:53 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:53 fixturedef = self._get_active_fixturedef(argname) 14:04:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:53 fixturedef.execute(request=subrequest) 14:04:53 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:53 14:04:53 self = 14:04:53 Erequest = > 14:04:53 14:04:53 def execute(self, request: SubRequest) -> FixtureValue: 14:04:53 """Return the value of this fixture, executing it if not cached.""" 14:04:53 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:53 # This needs to be done before checking if we have a cached value, since 14:04:53 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:53 # parametrization, they finalize themselves and fixtures depending on it 14:04:53 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:53 # See #4871 14:04:53 requested_fixtures_that_should_finalize_us = [] 14:04:53 for argname in self.argnames: 14:04:53 fixturedef = request._get_active_fixturedef(argname) 14:04:53 # Saves requested fixtures in a list so we later can add our finalizer 14:04:53 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:53 # down first. This is generally handled by SetupState, but still currently 14:04:53 # needed when this fixture is not parametrized but depends on a parametrized 14:04:53 # fixture. 14:04:53 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:53 14:04:53 # Check for (and return) cached value/exception. 14:04:53 if self.cached_result is not None: 14:04:53 request_cache_key = self.cache_key(request) 14:04:53 cache_key = self.cached_result[1] 14:04:53 try: 14:04:53 # Attempt to make a normal == check: this might fail for objects 14:04:53 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:53 cache_hit = bool(request_cache_key == cache_key) 14:04:53 except (ValueError, RuntimeError): 14:04:53 # If the comparison raises, use 'is' as fallback. 14:04:53 cache_hit = request_cache_key is cache_key 14:04:53 14:04:53 if cache_hit: 14:04:53 if self.cached_result[2] is not None: 14:04:53 exc, exc_tb = self.cached_result[2] 14:04:53 raise exc.with_traceback(exc_tb) 14:04:53 else: 14:04:53 return self.cached_result[0] 14:04:53 # We have a previous but differently parametrized fixture instance 14:04:53 # so we need to tear it down before creating a new one. 14:04:53 self.finish(request) 14:04:53 assert self.cached_result is None 14:04:53 14:04:53 # Add finalizer to requested fixtures we saved previously. 14:04:53 # We make sure to do this after checking for cached value to avoid 14:04:53 # adding our finalizer multiple times. (#12135) 14:04:53 finalizer = functools.partial(self.finish, request=request) 14:04:53 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:53 parent_fixture.addfinalizer(finalizer) 14:04:53 14:04:53 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:53 # which is executed last. 14:04:53 > assert not self._finalizers 14:04:53 ^^^^^^^^^^^^^^^^^^^^ 14:04:53 E AssertionError 14:04:53 14:04:53 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:53 =========================== short test summary info ============================ 14:04:53 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_01_meta_data_insertion 14:04:53 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_02_catalog_input_insertion 14:04:53 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_device_connection 14:04:53 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_04_xpdr_device_connected 14:04:53 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_05_xpdr_portmapping_info 14:04:53 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK5 14:04:53 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 14:04:53 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_08_mpdr_switching_pool 14:04:53 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_09_check_mccapprofile 14:04:53 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 14:04:53 10 errors in 101.89s (0:01:41) 14:04:53 tests200: exit 1 (102.17 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 pid=4486 14:04:53 Etests200: FAIL ✖ in 1 minute 50.59 seconds 14:04:53 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 14:04:53 EEEEEEEEEEEEEEEEEEEEEEEEE [100%] 14:04:58 ==================================== ERRORS ==================================== 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 14:04:58 14:04:58 cls = 14:04:58 14:04:58 @classmethod 14:04:58 def setUpClass(cls): 14:04:58 > cls.processes = test_utils.start_tpce() 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 14:04:58 transportpce_tests/2.2.1/test01_portmapping.py:33: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 def start_tpce(): 14:04:58 if 'NO_ODL_STARTUP' in os.environ: 14:04:58 print('No OpenDaylight instance to start!') 14:04:58 return [] 14:04:58 print('starting OpenDaylight...') 14:04:58 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:04:58 process = start_lighty() 14:04:58 else: 14:04:58 process = start_karaf() 14:04:58 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:04:58 print('OpenDaylight started !') 14:04:58 else: 14:04:58 print('OpenDaylight failed to start !') 14:04:58 shutdown_process(process) 14:04:58 for pid in process_list: 14:04:58 shutdown_process(pid) 14:04:58 > sys.exit(1) 14:04:58 E SystemExit: 1 14:04:58 14:04:58 transportpce_tests/common/test_utils.py:234: SystemExit 14:04:58 ---------------------------- Captured stdout setup ----------------------------- 14:04:58 starting OpenDaylight... 14:04:58 starting KARAF (karaf221) TransportPCE build... 14:04:58 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:04:58 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fc39f100> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fc39f2e0> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41feab3240> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms _ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fdcc3060> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG1_PP3_TXRX _ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fc39f100> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_07_rdm_portmapping_SRG3_PP1_TXRX _ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fdcc3060> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connection _ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fc39d120> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_device_connected __ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fc3ded40> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_info __ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fdcc3060> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK1 _ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fc39d120> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_XPDR2_NETWORK1 _ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fc3dff60> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_XPDR1_CLIENT1 _ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fdcc3060> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_XPDR1_CLIENT2 _ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fc3df9c0> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_15_spdr_device_connection _ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fc39d120> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_16_spdr_device_connected __ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fdcc3060> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_17_spdr_portmapping_info __ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fc3de520> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_18_spdr_switching_pool_1 __ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fc3df9c0> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_19_spdr_switching_pool_2 __ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fc3dfd80> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_20_spdr_switching_pool_3 __ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fc39d120> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_21_spdr_portmapping_mappings _ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fdcc3060> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_22_spdr_portmapping_XPDR1_CLIENT1 _ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fc39e0c0> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_23_spdr_portmapping_XPDR1_NETWORK1 _ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fc39df80> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_24_spdr_portmapping_XPDR2_CLIENT2 _ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fc3df9c0> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_25_spdr_portmapping_XPDR2_NETWORK2 _ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fc39df80> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_26_spdr_portmapping_XPDR3_CLIENT3 _ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fdcc3060> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_27_spdr_portmapping_XPDR3_NETWORK1 _ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fc3df9c0> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_28_spdr_device_disconnection _ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fdcc3060> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_29_xpdr_device_disconnected _ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fc4404a0> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_30_xpdr_device_disconnection _ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fc3df9c0> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_31_xpdr_device_disconnected _ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fc441800> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_32_xpdr_device_not_connected _ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fc440540> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_33_rdm_device_disconnection _ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fc3df9c0> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_34_rdm_device_disconnected _ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fc4416c0> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 _ ERROR at setup of TestTransportPCEPortmapping.test_35_rdm_device_not_connected _ 14:04:58 14:04:58 cls = 14:04:58 func = . at 0x7f41fc3df9c0> 14:04:58 when = 'setup' 14:04:58 reraise = (, ) 14:04:58 14:04:58 @classmethod 14:04:58 def from_call( 14:04:58 cls, 14:04:58 func: Callable[[], TResult], 14:04:58 when: Literal["collect", "setup", "call", "teardown"], 14:04:58 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:04:58 ) -> CallInfo[TResult]: 14:04:58 """Call func, wrapping the result in a CallInfo. 14:04:58 14:04:58 :param func: 14:04:58 The function to call. Called without arguments. 14:04:58 :type func: Callable[[], _pytest.runner.TResult] 14:04:58 :param when: 14:04:58 The phase in which the function is called. 14:04:58 :param reraise: 14:04:58 Exception or exceptions that shall propagate if raised by the 14:04:58 function, instead of being wrapped in the CallInfo. 14:04:58 """ 14:04:58 excinfo = None 14:04:58 instant = timing.Instant() 14:04:58 try: 14:04:58 > result: TResult | None = func() 14:04:58 ^^^^^^ 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:04:58 lambda: runtest_hook(item=item, **kwds), 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:04:58 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:04:58 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:04:58 yield 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:04:58 return (yield) 14:04:58 ^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:04:58 item.session._setupstate.setup(item) 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:04:58 col.setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:04:58 super().setup() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:04:58 self._request._fillfixtures() 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:04:58 item.funcargs[argname] = self.getfixturevalue(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:04:58 fixturedef = self._get_active_fixturedef(argname) 14:04:58 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:04:58 fixturedef.execute(request=subrequest) 14:04:58 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:04:58 14:04:58 self = 14:04:58 request = > 14:04:58 14:04:58 def execute(self, request: SubRequest) -> FixtureValue: 14:04:58 """Return the value of this fixture, executing it if not cached.""" 14:04:58 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:04:58 # This needs to be done before checking if we have a cached value, since 14:04:58 # if a dependent fixture has their cache invalidated, e.g. due to 14:04:58 # parametrization, they finalize themselves and fixtures depending on it 14:04:58 # (which will likely include this fixture) setting `self.cached_result = None`. 14:04:58 # See #4871 14:04:58 requested_fixtures_that_should_finalize_us = [] 14:04:58 for argname in self.argnames: 14:04:58 fixturedef = request._get_active_fixturedef(argname) 14:04:58 # Saves requested fixtures in a list so we later can add our finalizer 14:04:58 # to them, ensuring that if a requested fixture gets torn down we get torn 14:04:58 # down first. This is generally handled by SetupState, but still currently 14:04:58 # needed when this fixture is not parametrized but depends on a parametrized 14:04:58 # fixture. 14:04:58 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:04:58 14:04:58 # Check for (and return) cached value/exception. 14:04:58 if self.cached_result is not None: 14:04:58 request_cache_key = self.cache_key(request) 14:04:58 cache_key = self.cached_result[1] 14:04:58 try: 14:04:58 # Attempt to make a normal == check: this might fail for objects 14:04:58 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:04:58 cache_hit = bool(request_cache_key == cache_key) 14:04:58 except (ValueError, RuntimeError): 14:04:58 # If the comparison raises, use 'is' as fallback. 14:04:58 cache_hit = request_cache_key is cache_key 14:04:58 14:04:58 if cache_hit: 14:04:58 if self.cached_result[2] is not None: 14:04:58 exc, exc_tb = self.cached_result[2] 14:04:58 raise exc.with_traceback(exc_tb) 14:04:58 else: 14:04:58 return self.cached_result[0] 14:04:58 # We have a previous but differently parametrized fixture instance 14:04:58 # so we need to tear it down before creating a new one. 14:04:58 self.finish(request) 14:04:58 assert self.cached_result is None 14:04:58 14:04:58 # Add finalizer to requested fixtures we saved previously. 14:04:58 # We make sure to do this after checking for cached value to avoid 14:04:58 # adding our finalizer multiple times. (#12135) 14:04:58 finalizer = functools.partial(self.finish, request=request) 14:04:58 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:04:58 parent_fixture.addfinalizer(finalizer) 14:04:58 14:04:58 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:04:58 # which is executed last. 14:04:58 > assert not self._finalizers 14:04:58 ^^^^^^^^^^^^^^^^^^^^ 14:04:58 E AssertionError 14:04:58 14:04:58 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:04:58 =========================== short test summary info ============================ 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG1_PP3_TXRX 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_rdm_portmapping_SRG3_PP1_TXRX 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connection 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_device_connected 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_info 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK1 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_XPDR2_NETWORK1 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_XPDR1_CLIENT1 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_XPDR1_CLIENT2 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_spdr_device_connection 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_spdr_device_connected 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_spdr_portmapping_info 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_spdr_switching_pool_1 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_spdr_switching_pool_2 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_spdr_switching_pool_3 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_spdr_portmapping_mappings 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_22_spdr_portmapping_XPDR1_CLIENT1 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_23_spdr_portmapping_XPDR1_NETWORK1 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_24_spdr_portmapping_XPDR2_CLIENT2 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_25_spdr_portmapping_XPDR2_NETWORK2 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_26_spdr_portmapping_XPDR3_CLIENT3 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_27_spdr_portmapping_XPDR3_NETWORK1 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_28_spdr_device_disconnection 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_29_xpdr_device_disconnected 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_30_xpdr_device_disconnection 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_31_xpdr_device_disconnected 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_32_xpdr_device_not_connected 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_33_rdm_device_disconnection 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_34_rdm_device_disconnected 14:04:58 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_35_rdm_device_not_connected 14:04:58 35 errors in 106.42s (0:01:46) 14:04:58 tests221: exit 1 (106.70 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 pid=4497 14:04:58 tests221: FAIL ✖ in 1 minute 55.24 seconds 14:04:58 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 14:05:01 tests71: freeze> python -m pip freeze --all 14:05:01 tests71: bcrypt==5.0.0,certifi==2026.7.22,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.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 14:05:01 tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 14:05:01 using environment variables from ./karaf71.env 14:05:01 pytest -q transportpce_tests/7.1/test01_portmapping.py 14:05:04 tests_hybrid: freeze> python -m pip freeze --all 14:05:04 tests_hybrid: bcrypt==5.0.0,certifi==2026.7.22,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.0.0,pip==26.2.1,pluggy==1.6.0,psutil==7.2.2,pycparser==3.11,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 14:05:04 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid 14:05:04 using environment variables from ./karaf221.env 14:05:04 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 14:06:42 EEEEEEEEEEEE [100%] 14:06:44 ==================================== ERRORS ==================================== 14:06:44 _ ERROR at setup of TestTransportPCEPortmapping.test_01_xpdr_device_connection _ 14:06:44 14:06:44 cls = 14:06:44 14:06:44 @classmethod 14:06:44 def setUpClass(cls): 14:06:44 > cls.processes = test_utils.start_tpce() 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 14:06:44 transportpce_tests/7.1/test01_portmapping.py:32: 14:06:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:44 14:06:44 def start_tpce(): 14:06:44 if 'NO_ODL_STARTUP' in os.environ: 14:06:44 print('No OpenDaylight instance to start!') 14:06:44 return [] 14:06:44 print('starting OpenDaylight...') 14:06:44 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:06:44 process = start_lighty() 14:06:44 else: 14:06:44 process = start_karaf() 14:06:44 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:06:44 print('OpenDaylight started !') 14:06:44 else: 14:06:44 print('OpenDaylight failed to start !') 14:06:44 shutdown_process(process) 14:06:44 for pid in process_list: 14:06:44 shutdown_process(pid) 14:06:44 > sys.exit(1) 14:06:44 E SystemExit: 1 14:06:44 14:06:44 transportpce_tests/common/test_utils.py:234: SystemExit 14:06:44 ---------------------------- Captured stdout setup ----------------------------- 14:06:44 starting OpenDaylight... 14:06:44 starting KARAF (karaf71) TransportPCE build... 14:06:44 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:06:44 _ ERROR at setup of TestTransportPCEPortmapping.test_02_xpdr_device_connected __ 14:06:44 14:06:44 cls = 14:06:44 func = . at 0x7f271e2df4c0> 14:06:44 when = 'setup' 14:06:44 reraise = (, ) 14:06:44 14:06:44 @classmethod 14:06:44 def from_call( 14:06:44 cls, 14:06:44 func: Callable[[], TResult], 14:06:44 when: Literal["collect", "setup", "call", "teardown"], 14:06:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:44 ) -> CallInfo[TResult]: 14:06:44 """Call func, wrapping the result in a CallInfo. 14:06:44 14:06:44 :param func: 14:06:44 The function to call. Called without arguments. 14:06:44 :type func: Callable[[], _pytest.runner.TResult] 14:06:44 :param when: 14:06:44 The phase in which the function is called. 14:06:44 :param reraise: 14:06:44 Exception or exceptions that shall propagate if raised by the 14:06:44 function, instead of being wrapped in the CallInfo. 14:06:44 """ 14:06:44 excinfo = None 14:06:44 instant = timing.Instant() 14:06:44 try: 14:06:44 > result: TResult | None = func() 14:06:44 ^^^^^^ 14:06:44 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:44 lambda: runtest_hook(item=item, **kwds), 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:44 yield 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:44 return (yield) 14:06:44 ^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:44 item.session._setupstate.setup(item) 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:44 col.setup() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:44 super().setup() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:44 self._request._fillfixtures() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:44 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:44 fixturedef = self._get_active_fixturedef(argname) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:44 fixturedef.execute(request=subrequest) 14:06:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:44 14:06:44 self = 14:06:44 request = > 14:06:44 14:06:44 def execute(self, request: SubRequest) -> FixtureValue: 14:06:44 """Return the value of this fixture, executing it if not cached.""" 14:06:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:44 # This needs to be done before checking if we have a cached value, since 14:06:44 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:44 # parametrization, they finalize themselves and fixtures depending on it 14:06:44 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:44 # See #4871 14:06:44 requested_fixtures_that_should_finalize_us = [] 14:06:44 for argname in self.argnames: 14:06:44 fixturedef = request._get_active_fixturedef(argname) 14:06:44 # Saves requested fixtures in a list so we later can add our finalizer 14:06:44 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:44 # down first. This is generally handled by SetupState, but still currently 14:06:44 # needed when this fixture is not parametrized but depends on a parametrized 14:06:44 # fixture. 14:06:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:44 14:06:44 # Check for (and return) cached value/exception. 14:06:44 if self.cached_result is not None: 14:06:44 request_cache_key = self.cache_key(request) 14:06:44 cache_key = self.cached_result[1] 14:06:44 try: 14:06:44 # Attempt to make a normal == check: this might fail for objects 14:06:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:44 cache_hit = bool(request_cache_key == cache_key) 14:06:44 except (ValueError, RuntimeError): 14:06:44 # If the comparison raises, use 'is' as fallback. 14:06:44 cache_hit = request_cache_key is cache_key 14:06:44 14:06:44 if cache_hit: 14:06:44 if self.cached_result[2] is not None: 14:06:44 exc, exc_tb = self.cached_result[2] 14:06:44 raise exc.with_traceback(exc_tb) 14:06:44 else: 14:06:44 return self.cached_result[0] 14:06:44 # We have a previous but differently parametrized fixture instance 14:06:44 # so we need to tear it down before creating a new one. 14:06:44 self.finish(request) 14:06:44 assert self.cached_result is None 14:06:44 14:06:44 # Add finalizer to requested fixtures we saved previously. 14:06:44 # We make sure to do this after checking for cached value to avoid 14:06:44 # adding our finalizer multiple times. (#12135) 14:06:44 finalizer = functools.partial(self.finish, request=request) 14:06:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:44 parent_fixture.addfinalizer(finalizer) 14:06:44 14:06:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:44 # which is executed last. 14:06:44 > assert not self._finalizers 14:06:44 ^^^^^^^^^^^^^^^^^^^^ 14:06:44 E AssertionError 14:06:44 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:44 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_portmapping_info __ 14:06:44 14:06:44 cls = 14:06:44 func = . at 0x7f271bbcfa60> 14:06:44 when = 'setup' 14:06:44 reraise = (, ) 14:06:44 14:06:44 @classmethod 14:06:44 def from_call( 14:06:44 cls, 14:06:44 func: Callable[[], TResult], 14:06:44 when: Literal["collect", "setup", "call", "teardown"], 14:06:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:44 ) -> CallInfo[TResult]: 14:06:44 """Call func, wrapping the result in a CallInfo. 14:06:44 14:06:44 :param func: 14:06:44 The function to call. Called without arguments. 14:06:44 :type func: Callable[[], _pytest.runner.TResult] 14:06:44 :param when: 14:06:44 The phase in which the function is called. 14:06:44 :param reraise: 14:06:44 Exception or exceptions that shall propagate if raised by the 14:06:44 function, instead of being wrapped in the CallInfo. 14:06:44 """ 14:06:44 excinfo = None 14:06:44 instant = timing.Instant() 14:06:44 try: 14:06:44 > result: TResult | None = func() 14:06:44 ^^^^^^ 14:06:44 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:44 lambda: runtest_hook(item=item, **kwds), 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:44 yield 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:44 return (yield) 14:06:44 ^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:44 item.session._setupstate.setup(item) 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:44 col.setup() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:44 super().setup() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:44 self._request._fillfixtures() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:44 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:44 fixturedef = self._get_active_fixturedef(argname) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:44 fixturedef.execute(request=subrequest) 14:06:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:44 14:06:44 self = 14:06:44 request = > 14:06:44 14:06:44 def execute(self, request: SubRequest) -> FixtureValue: 14:06:44 """Return the value of this fixture, executing it if not cached.""" 14:06:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:44 # This needs to be done before checking if we have a cached value, since 14:06:44 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:44 # parametrization, they finalize themselves and fixtures depending on it 14:06:44 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:44 # See #4871 14:06:44 requested_fixtures_that_should_finalize_us = [] 14:06:44 for argname in self.argnames: 14:06:44 fixturedef = request._get_active_fixturedef(argname) 14:06:44 # Saves requested fixtures in a list so we later can add our finalizer 14:06:44 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:44 # down first. This is generally handled by SetupState, but still currently 14:06:44 # needed when this fixture is not parametrized but depends on a parametrized 14:06:44 # fixture. 14:06:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:44 14:06:44 # Check for (and return) cached value/exception. 14:06:44 if self.cached_result is not None: 14:06:44 request_cache_key = self.cache_key(request) 14:06:44 cache_key = self.cached_result[1] 14:06:44 try: 14:06:44 # Attempt to make a normal == check: this might fail for objects 14:06:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:44 cache_hit = bool(request_cache_key == cache_key) 14:06:44 except (ValueError, RuntimeError): 14:06:44 # If the comparison raises, use 'is' as fallback. 14:06:44 cache_hit = request_cache_key is cache_key 14:06:44 14:06:44 if cache_hit: 14:06:44 if self.cached_result[2] is not None: 14:06:44 exc, exc_tb = self.cached_result[2] 14:06:44 raise exc.with_traceback(exc_tb) 14:06:44 else: 14:06:44 return self.cached_result[0] 14:06:44 # We have a previous but differently parametrized fixture instance 14:06:44 # so we need to tear it down before creating a new one. 14:06:44 self.finish(request) 14:06:44 assert self.cached_result is None 14:06:44 14:06:44 # Add finalizer to requested fixtures we saved previously. 14:06:44 # We make sure to do this after checking for cached value to avoid 14:06:44 # adding our finalizer multiple times. (#12135) 14:06:44 finalizer = functools.partial(self.finish, request=request) 14:06:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:44 parent_fixture.addfinalizer(finalizer) 14:06:44 14:06:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:44 # which is executed last. 14:06:44 > assert not self._finalizers 14:06:44 ^^^^^^^^^^^^^^^^^^^^ 14:06:44 E AssertionError 14:06:44 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:44 _ ERROR at setup of TestTransportPCEPortmapping.test_04_tpdr_portmapping_NETWORK1 _ 14:06:44 14:06:44 cls = 14:06:44 func = . at 0x7f271d4e6fc0> 14:06:44 when = 'setup' 14:06:44 reraise = (, ) 14:06:44 14:06:44 @classmethod 14:06:44 def from_call( 14:06:44 cls, 14:06:44 func: Callable[[], TResult], 14:06:44 when: Literal["collect", "setup", "call", "teardown"], 14:06:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:44 ) -> CallInfo[TResult]: 14:06:44 """Call func, wrapping the result in a CallInfo. 14:06:44 14:06:44 :param func: 14:06:44 The function to call. Called without arguments. 14:06:44 :type func: Callable[[], _pytest.runner.TResult] 14:06:44 :param when: 14:06:44 The phase in which the function is called. 14:06:44 :param reraise: 14:06:44 Exception or exceptions that shall propagate if raised by the 14:06:44 function, instead of being wrapped in the CallInfo. 14:06:44 """ 14:06:44 excinfo = None 14:06:44 instant = timing.Instant() 14:06:44 try: 14:06:44 > result: TResult | None = func() 14:06:44 ^^^^^^ 14:06:44 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:44 lambda: runtest_hook(item=item, **kwds), 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:44 yield 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:44 return (yield) 14:06:44 ^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:44 item.session._setupstate.setup(item) 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:44 col.setup() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:44 super().setup() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:44 self._request._fillfixtures() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:44 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:44 fixturedef = self._get_active_fixturedef(argname) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:44 fixturedef.execute(request=subrequest) 14:06:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:44 14:06:44 self = 14:06:44 request = > 14:06:44 14:06:44 def execute(self, request: SubRequest) -> FixtureValue: 14:06:44 """Return the value of this fixture, executing it if not cached.""" 14:06:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:44 # This needs to be done before checking if we have a cached value, since 14:06:44 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:44 # parametrization, they finalize themselves and fixtures depending on it 14:06:44 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:44 # See #4871 14:06:44 requested_fixtures_that_should_finalize_us = [] 14:06:44 for argname in self.argnames: 14:06:44 fixturedef = request._get_active_fixturedef(argname) 14:06:44 # Saves requested fixtures in a list so we later can add our finalizer 14:06:44 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:44 # down first. This is generally handled by SetupState, but still currently 14:06:44 # needed when this fixture is not parametrized but depends on a parametrized 14:06:44 # fixture. 14:06:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:44 14:06:44 # Check for (and return) cached value/exception. 14:06:44 if self.cached_result is not None: 14:06:44 request_cache_key = self.cache_key(request) 14:06:44 cache_key = self.cached_result[1] 14:06:44 try: 14:06:44 # Attempt to make a normal == check: this might fail for objects 14:06:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:44 cache_hit = bool(request_cache_key == cache_key) 14:06:44 except (ValueError, RuntimeError): 14:06:44 # If the comparison raises, use 'is' as fallback. 14:06:44 cache_hit = request_cache_key is cache_key 14:06:44 14:06:44 if cache_hit: 14:06:44 if self.cached_result[2] is not None: 14:06:44 exc, exc_tb = self.cached_result[2] 14:06:44 raise exc.with_traceback(exc_tb) 14:06:44 else: 14:06:44 return self.cached_result[0] 14:06:44 # We have a previous but differently parametrized fixture instance 14:06:44 # so we need to tear it down before creating a new one. 14:06:44 self.finish(request) 14:06:44 assert self.cached_result is None 14:06:44 14:06:44 # Add finalizer to requested fixtures we saved previously. 14:06:44 # We make sure to do this after checking for cached value to avoid 14:06:44 # adding our finalizer multiple times. (#12135) 14:06:44 finalizer = functools.partial(self.finish, request=request) 14:06:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:44 parent_fixture.addfinalizer(finalizer) 14:06:44 14:06:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:44 # which is executed last. 14:06:44 > assert not self._finalizers 14:06:44 ^^^^^^^^^^^^^^^^^^^^ 14:06:44 E AssertionError 14:06:44 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:44 _ ERROR at setup of TestTransportPCEPortmapping.test_05_tpdr_portmapping_CLIENT1 _ 14:06:44 14:06:44 cls = 14:06:44 func = . at 0x7f271e2df2e0> 14:06:44 when = 'setup' 14:06:44 reraise = (, ) 14:06:44 14:06:44 @classmethod 14:06:44 def from_call( 14:06:44 cls, 14:06:44 func: Callable[[], TResult], 14:06:44 when: Literal["collect", "setup", "call", "teardown"], 14:06:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:44 ) -> CallInfo[TResult]: 14:06:44 """Call func, wrapping the result in a CallInfo. 14:06:44 14:06:44 :param func: 14:06:44 The function to call. Called without arguments. 14:06:44 :type func: Callable[[], _pytest.runner.TResult] 14:06:44 :param when: 14:06:44 The phase in which the function is called. 14:06:44 :param reraise: 14:06:44 Exception or exceptions that shall propagate if raised by the 14:06:44 function, instead of being wrapped in the CallInfo. 14:06:44 """ 14:06:44 excinfo = None 14:06:44 instant = timing.Instant() 14:06:44 try: 14:06:44 > result: TResult | None = func() 14:06:44 ^^^^^^ 14:06:44 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:44 lambda: runtest_hook(item=item, **kwds), 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:44 yield 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:44 return (yield) 14:06:44 ^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:44 item.session._setupstate.setup(item) 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:44 col.setup() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:44 super().setup() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:44 self._request._fillfixtures() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:44 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:44 fixturedef = self._get_active_fixturedef(argname) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:44 fixturedef.execute(request=subrequest) 14:06:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:44 14:06:44 self = 14:06:44 request = > 14:06:44 14:06:44 def execute(self, request: SubRequest) -> FixtureValue: 14:06:44 """Return the value of this fixture, executing it if not cached.""" 14:06:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:44 # This needs to be done before checking if we have a cached value, since 14:06:44 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:44 # parametrization, they finalize themselves and fixtures depending on it 14:06:44 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:44 # See #4871 14:06:44 requested_fixtures_that_should_finalize_us = [] 14:06:44 for argname in self.argnames: 14:06:44 fixturedef = request._get_active_fixturedef(argname) 14:06:44 # Saves requested fixtures in a list so we later can add our finalizer 14:06:44 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:44 # down first. This is generally handled by SetupState, but still currently 14:06:44 # needed when this fixture is not parametrized but depends on a parametrized 14:06:44 # fixture. 14:06:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:44 14:06:44 # Check for (and return) cached value/exception. 14:06:44 if self.cached_result is not None: 14:06:44 request_cache_key = self.cache_key(request) 14:06:44 cache_key = self.cached_result[1] 14:06:44 try: 14:06:44 # Attempt to make a normal == check: this might fail for objects 14:06:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:44 cache_hit = bool(request_cache_key == cache_key) 14:06:44 except (ValueError, RuntimeError): 14:06:44 # If the comparison raises, use 'is' as fallback. 14:06:44 cache_hit = request_cache_key is cache_key 14:06:44 14:06:44 if cache_hit: 14:06:44 if self.cached_result[2] is not None: 14:06:44 exc, exc_tb = self.cached_result[2] 14:06:44 raise exc.with_traceback(exc_tb) 14:06:44 else: 14:06:44 return self.cached_result[0] 14:06:44 # We have a previous but differently parametrized fixture instance 14:06:44 # so we need to tear it down before creating a new one. 14:06:44 self.finish(request) 14:06:44 assert self.cached_result is None 14:06:44 14:06:44 # Add finalizer to requested fixtures we saved previously. 14:06:44 # We make sure to do this after checking for cached value to avoid 14:06:44 # adding our finalizer multiple times. (#12135) 14:06:44 finalizer = functools.partial(self.finish, request=request) 14:06:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:44 parent_fixture.addfinalizer(finalizer) 14:06:44 14:06:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:44 # which is executed last. 14:06:44 > assert not self._finalizers 14:06:44 ^^^^^^^^^^^^^^^^^^^^ 14:06:44 E AssertionError 14:06:44 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:44 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK1 _ 14:06:44 14:06:44 cls = 14:06:44 func = . at 0x7f271bbcf7e0> 14:06:44 when = 'setup' 14:06:44 reraise = (, ) 14:06:44 14:06:44 @classmethod 14:06:44 def from_call( 14:06:44 cls, 14:06:44 func: Callable[[], TResult], 14:06:44 when: Literal["collect", "setup", "call", "teardown"], 14:06:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:44 ) -> CallInfo[TResult]: 14:06:44 """Call func, wrapping the result in a CallInfo. 14:06:44 14:06:44 :param func: 14:06:44 The function to call. Called without arguments. 14:06:44 :type func: Callable[[], _pytest.runner.TResult] 14:06:44 :param when: 14:06:44 The phase in which the function is called. 14:06:44 :param reraise: 14:06:44 Exception or exceptions that shall propagate if raised by the 14:06:44 function, instead of being wrapped in the CallInfo. 14:06:44 """ 14:06:44 excinfo = None 14:06:44 instant = timing.Instant() 14:06:44 try: 14:06:44 > result: TResult | None = func() 14:06:44 ^^^^^^ 14:06:44 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:44 lambda: runtest_hook(item=item, **kwds), 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:44 yield 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:44 return (yield) 14:06:44 ^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:44 item.session._setupstate.setup(item) 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:44 col.setup() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:44 super().setup() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:44 self._request._fillfixtures() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:44 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:44 fixturedef = self._get_active_fixturedef(argname) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:44 fixturedef.execute(request=subrequest) 14:06:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:44 14:06:44 self = 14:06:44 request = > 14:06:44 14:06:44 def execute(self, request: SubRequest) -> FixtureValue: 14:06:44 """Return the value of this fixture, executing it if not cached.""" 14:06:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:44 # This needs to be done before checking if we have a cached value, since 14:06:44 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:44 # parametrization, they finalize themselves and fixtures depending on it 14:06:44 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:44 # See #4871 14:06:44 requested_fixtures_that_should_finalize_us = [] 14:06:44 for argname in self.argnames: 14:06:44 fixturedef = request._get_active_fixturedef(argname) 14:06:44 # Saves requested fixtures in a list so we later can add our finalizer 14:06:44 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:44 # down first. This is generally handled by SetupState, but still currently 14:06:44 # needed when this fixture is not parametrized but depends on a parametrized 14:06:44 # fixture. 14:06:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:44 14:06:44 # Check for (and return) cached value/exception. 14:06:44 if self.cached_result is not None: 14:06:44 request_cache_key = self.cache_key(request) 14:06:44 cache_key = self.cached_result[1] 14:06:44 try: 14:06:44 # Attempt to make a normal == check: this might fail for objects 14:06:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:44 cache_hit = bool(request_cache_key == cache_key) 14:06:44 except (ValueError, RuntimeError): 14:06:44 # If the comparison raises, use 'is' as fallback. 14:06:44 cache_hit = request_cache_key is cache_key 14:06:44 14:06:44 if cache_hit: 14:06:44 if self.cached_result[2] is not None: 14:06:44 exc, exc_tb = self.cached_result[2] 14:06:44 raise exc.with_traceback(exc_tb) 14:06:44 else: 14:06:44 return self.cached_result[0] 14:06:44 # We have a previous but differently parametrized fixture instance 14:06:44 # so we need to tear it down before creating a new one. 14:06:44 self.finish(request) 14:06:44 assert self.cached_result is None 14:06:44 14:06:44 # Add finalizer to requested fixtures we saved previously. 14:06:44 # We make sure to do this after checking for cached value to avoid 14:06:44 # adding our finalizer multiple times. (#12135) 14:06:44 finalizer = functools.partial(self.finish, request=request) 14:06:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:44 parent_fixture.addfinalizer(finalizer) 14:06:44 14:06:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:44 # which is executed last. 14:06:44 > assert not self._finalizers 14:06:44 ^^^^^^^^^^^^^^^^^^^^ 14:06:44 E AssertionError 14:06:44 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:44 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 14:06:44 14:06:44 cls = 14:06:44 func = . at 0x7f271d4e6fc0> 14:06:44 when = 'setup' 14:06:44 reraise = (, ) 14:06:44 14:06:44 @classmethod 14:06:44 def from_call( 14:06:44 cls, 14:06:44 func: Callable[[], TResult], 14:06:44 when: Literal["collect", "setup", "call", "teardown"], 14:06:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:44 ) -> CallInfo[TResult]: 14:06:44 """Call func, wrapping the result in a CallInfo. 14:06:44 14:06:44 :param func: 14:06:44 The function to call. Called without arguments. 14:06:44 :type func: Callable[[], _pytest.runner.TResult] 14:06:44 :param when: 14:06:44 The phase in which the function is called. 14:06:44 :param reraise: 14:06:44 Exception or exceptions that shall propagate if raised by the 14:06:44 function, instead of being wrapped in the CallInfo. 14:06:44 """ 14:06:44 excinfo = None 14:06:44 instant = timing.Instant() 14:06:44 try: 14:06:44 > result: TResult | None = func() 14:06:44 ^^^^^^ 14:06:44 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:44 lambda: runtest_hook(item=item, **kwds), 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:44 yield 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:44 return (yield) 14:06:44 ^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:44 item.session._setupstate.setup(item) 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:44 col.setup() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:44 super().setup() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:44 self._request._fillfixtures() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:44 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:44 fixturedef = self._get_active_fixturedef(argname) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:44 fixturedef.execute(request=subrequest) 14:06:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:44 14:06:44 self = 14:06:44 request = > 14:06:44 14:06:44 def execute(self, request: SubRequest) -> FixtureValue: 14:06:44 """Return the value of this fixture, executing it if not cached.""" 14:06:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:44 # This needs to be done before checking if we have a cached value, since 14:06:44 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:44 # parametrization, they finalize themselves and fixtures depending on it 14:06:44 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:44 # See #4871 14:06:44 requested_fixtures_that_should_finalize_us = [] 14:06:44 for argname in self.argnames: 14:06:44 fixturedef = request._get_active_fixturedef(argname) 14:06:44 # Saves requested fixtures in a list so we later can add our finalizer 14:06:44 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:44 # down first. This is generally handled by SetupState, but still currently 14:06:44 # needed when this fixture is not parametrized but depends on a parametrized 14:06:44 # fixture. 14:06:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:44 14:06:44 # Check for (and return) cached value/exception. 14:06:44 if self.cached_result is not None: 14:06:44 request_cache_key = self.cache_key(request) 14:06:44 cache_key = self.cached_result[1] 14:06:44 try: 14:06:44 # Attempt to make a normal == check: this might fail for objects 14:06:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:44 cache_hit = bool(request_cache_key == cache_key) 14:06:44 except (ValueError, RuntimeError): 14:06:44 # If the comparison raises, use 'is' as fallback. 14:06:44 cache_hit = request_cache_key is cache_key 14:06:44 14:06:44 if cache_hit: 14:06:44 if self.cached_result[2] is not None: 14:06:44 exc, exc_tb = self.cached_result[2] 14:06:44 raise exc.with_traceback(exc_tb) 14:06:44 else: 14:06:44 return self.cached_result[0] 14:06:44 # We have a previous but differently parametrized fixture instance 14:06:44 # so we need to tear it down before creating a new one. 14:06:44 self.finish(request) 14:06:44 assert self.cached_result is None 14:06:44 14:06:44 # Add finalizer to requested fixtures we saved previously. 14:06:44 # We make sure to do this after checking for cached value to avoid 14:06:44 # adding our finalizer multiple times. (#12135) 14:06:44 finalizer = functools.partial(self.finish, request=request) 14:06:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:44 parent_fixture.addfinalizer(finalizer) 14:06:44 14:06:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:44 # which is executed last. 14:06:44 > assert not self._finalizers 14:06:44 ^^^^^^^^^^^^^^^^^^^^ 14:06:44 E AssertionError 14:06:44 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:44 ___ ERROR at setup of TestTransportPCEPortmapping.test_08_check_mccapprofile ___ 14:06:44 14:06:44 cls = 14:06:44 func = . at 0x7f271bbcfa60> 14:06:44 when = 'setup' 14:06:44 reraise = (, ) 14:06:44 14:06:44 @classmethod 14:06:44 def from_call( 14:06:44 cls, 14:06:44 func: Callable[[], TResult], 14:06:44 when: Literal["collect", "setup", "call", "teardown"], 14:06:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:44 ) -> CallInfo[TResult]: 14:06:44 """Call func, wrapping the result in a CallInfo. 14:06:44 14:06:44 :param func: 14:06:44 The function to call. Called without arguments. 14:06:44 :type func: Callable[[], _pytest.runner.TResult] 14:06:44 :param when: 14:06:44 The phase in which the function is called. 14:06:44 :param reraise: 14:06:44 Exception or exceptions that shall propagate if raised by the 14:06:44 function, instead of being wrapped in the CallInfo. 14:06:44 """ 14:06:44 excinfo = None 14:06:44 instant = timing.Instant() 14:06:44 try: 14:06:44 > result: TResult | None = func() 14:06:44 ^^^^^^ 14:06:44 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:44 lambda: runtest_hook(item=item, **kwds), 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:44 yield 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:44 return (yield) 14:06:44 ^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:44 item.session._setupstate.setup(item) 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:44 col.setup() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:44 super().setup() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:44 self._request._fillfixtures() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:44 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:44 fixturedef = self._get_active_fixturedef(argname) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:44 fixturedef.execute(request=subrequest) 14:06:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:44 14:06:44 self = 14:06:44 request = > 14:06:44 14:06:44 def execute(self, request: SubRequest) -> FixtureValue: 14:06:44 """Return the value of this fixture, executing it if not cached.""" 14:06:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:44 # This needs to be done before checking if we have a cached value, since 14:06:44 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:44 # parametrization, they finalize themselves and fixtures depending on it 14:06:44 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:44 # See #4871 14:06:44 requested_fixtures_that_should_finalize_us = [] 14:06:44 for argname in self.argnames: 14:06:44 fixturedef = request._get_active_fixturedef(argname) 14:06:44 # Saves requested fixtures in a list so we later can add our finalizer 14:06:44 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:44 # down first. This is generally handled by SetupState, but still currently 14:06:44 # needed when this fixture is not parametrized but depends on a parametrized 14:06:44 # fixture. 14:06:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:44 14:06:44 # Check for (and return) cached value/exception. 14:06:44 if self.cached_result is not None: 14:06:44 request_cache_key = self.cache_key(request) 14:06:44 cache_key = self.cached_result[1] 14:06:44 try: 14:06:44 # Attempt to make a normal == check: this might fail for objects 14:06:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:44 cache_hit = bool(request_cache_key == cache_key) 14:06:44 except (ValueError, RuntimeError): 14:06:44 # If the comparison raises, use 'is' as fallback. 14:06:44 cache_hit = request_cache_key is cache_key 14:06:44 14:06:44 if cache_hit: 14:06:44 if self.cached_result[2] is not None: 14:06:44 exc, exc_tb = self.cached_result[2] 14:06:44 raise exc.with_traceback(exc_tb) 14:06:44 else: 14:06:44 return self.cached_result[0] 14:06:44 # We have a previous but differently parametrized fixture instance 14:06:44 # so we need to tear it down before creating a new one. 14:06:44 self.finish(request) 14:06:44 assert self.cached_result is None 14:06:44 14:06:44 # Add finalizer to requested fixtures we saved previously. 14:06:44 # We make sure to do this after checking for cached value to avoid 14:06:44 # adding our finalizer multiple times. (#12135) 14:06:44 finalizer = functools.partial(self.finish, request=request) 14:06:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:44 parent_fixture.addfinalizer(finalizer) 14:06:44 14:06:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:44 # which is executed last. 14:06:44 > assert not self._finalizers 14:06:44 ^^^^^^^^^^^^^^^^^^^^ 14:06:44 E AssertionError 14:06:44 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:44 __ ERROR at setup of TestTransportPCEPortmapping.test_09_mpdr_switching_pool ___ 14:06:44 14:06:44 cls = 14:06:44 func = . at 0x7f271bbcd120> 14:06:44 when = 'setup' 14:06:44 reraise = (, ) 14:06:44 14:06:44 @classmethod 14:06:44 def from_call( 14:06:44 cls, 14:06:44 func: Callable[[], TResult], 14:06:44 when: Literal["collect", "setup", "call", "teardown"], 14:06:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:44 ) -> CallInfo[TResult]: 14:06:44 """Call func, wrapping the result in a CallInfo. 14:06:44 14:06:44 :param func: 14:06:44 The function to call. Called without arguments. 14:06:44 :type func: Callable[[], _pytest.runner.TResult] 14:06:44 :param when: 14:06:44 The phase in which the function is called. 14:06:44 :param reraise: 14:06:44 Exception or exceptions that shall propagate if raised by the 14:06:44 function, instead of being wrapped in the CallInfo. 14:06:44 """ 14:06:44 excinfo = None 14:06:44 instant = timing.Instant() 14:06:44 try: 14:06:44 > result: TResult | None = func() 14:06:44 ^^^^^^ 14:06:44 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:44 lambda: runtest_hook(item=item, **kwds), 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:44 yield 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:44 return (yield) 14:06:44 ^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:44 item.session._setupstate.setup(item) 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:44 col.setup() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:44 super().setup() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:44 self._request._fillfixtures() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:44 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:44 fixturedef = self._get_active_fixturedef(argname) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:44 fixturedef.execute(request=subrequest) 14:06:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:44 14:06:44 self = 14:06:44 request = > 14:06:44 14:06:44 def execute(self, request: SubRequest) -> FixtureValue: 14:06:44 """Return the value of this fixture, executing it if not cached.""" 14:06:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:44 # This needs to be done before checking if we have a cached value, since 14:06:44 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:44 # parametrization, they finalize themselves and fixtures depending on it 14:06:44 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:44 # See #4871 14:06:44 requested_fixtures_that_should_finalize_us = [] 14:06:44 for argname in self.argnames: 14:06:44 fixturedef = request._get_active_fixturedef(argname) 14:06:44 # Saves requested fixtures in a list so we later can add our finalizer 14:06:44 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:44 # down first. This is generally handled by SetupState, but still currently 14:06:44 # needed when this fixture is not parametrized but depends on a parametrized 14:06:44 # fixture. 14:06:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:44 14:06:44 # Check for (and return) cached value/exception. 14:06:44 if self.cached_result is not None: 14:06:44 request_cache_key = self.cache_key(request) 14:06:44 cache_key = self.cached_result[1] 14:06:44 try: 14:06:44 # Attempt to make a normal == check: this might fail for objects 14:06:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:44 cache_hit = bool(request_cache_key == cache_key) 14:06:44 except (ValueError, RuntimeError): 14:06:44 # If the comparison raises, use 'is' as fallback. 14:06:44 cache_hit = request_cache_key is cache_key 14:06:44 14:06:44 if cache_hit: 14:06:44 if self.cached_result[2] is not None: 14:06:44 exc, exc_tb = self.cached_result[2] 14:06:44 raise exc.with_traceback(exc_tb) 14:06:44 else: 14:06:44 return self.cached_result[0] 14:06:44 # We have a previous but differently parametrized fixture instance 14:06:44 # so we need to tear it down before creating a new one. 14:06:44 self.finish(request) 14:06:44 assert self.cached_result is None 14:06:44 14:06:44 # Add finalizer to requested fixtures we saved previously. 14:06:44 # We make sure to do this after checking for cached value to avoid 14:06:44 # adding our finalizer multiple times. (#12135) 14:06:44 finalizer = functools.partial(self.finish, request=request) 14:06:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:44 parent_fixture.addfinalizer(finalizer) 14:06:44 14:06:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:44 # which is executed last. 14:06:44 > assert not self._finalizers 14:06:44 ^^^^^^^^^^^^^^^^^^^^ 14:06:44 E AssertionError 14:06:44 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:44 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 14:06:44 14:06:44 cls = 14:06:44 func = . at 0x7f271bbcf7e0> 14:06:44 when = 'setup' 14:06:44 reraise = (, ) 14:06:44 14:06:44 @classmethod 14:06:44 def from_call( 14:06:44 cls, 14:06:44 func: Callable[[], TResult], 14:06:44 when: Literal["collect", "setup", "call", "teardown"], 14:06:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:44 ) -> CallInfo[TResult]: 14:06:44 """Call func, wrapping the result in a CallInfo. 14:06:44 14:06:44 :param func: 14:06:44 The function to call. Called without arguments. 14:06:44 :type func: Callable[[], _pytest.runner.TResult] 14:06:44 :param when: 14:06:44 The phase in which the function is called. 14:06:44 :param reraise: 14:06:44 Exception or exceptions that shall propagate if raised by the 14:06:44 function, instead of being wrapped in the CallInfo. 14:06:44 """ 14:06:44 excinfo = None 14:06:44 instant = timing.Instant() 14:06:44 try: 14:06:44 > result: TResult | None = func() 14:06:44 ^^^^^^ 14:06:44 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:44 lambda: runtest_hook(item=item, **kwds), 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:44 yield 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:44 return (yield) 14:06:44 ^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:44 item.session._setupstate.setup(item) 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:44 col.setup() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:44 super().setup() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:44 self._request._fillfixtures() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:44 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:44 fixturedef = self._get_active_fixturedef(argname) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:44 fixturedef.execute(request=subrequest) 14:06:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:44 14:06:44 self = 14:06:44 request = > 14:06:44 14:06:44 def execute(self, request: SubRequest) -> FixtureValue: 14:06:44 """Return the value of this fixture, executing it if not cached.""" 14:06:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:44 # This needs to be done before checking if we have a cached value, since 14:06:44 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:44 # parametrization, they finalize themselves and fixtures depending on it 14:06:44 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:44 # See #4871 14:06:44 requested_fixtures_that_should_finalize_us = [] 14:06:44 for argname in self.argnames: 14:06:44 fixturedef = request._get_active_fixturedef(argname) 14:06:44 # Saves requested fixtures in a list so we later can add our finalizer 14:06:44 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:44 # down first. This is generally handled by SetupState, but still currently 14:06:44 # needed when this fixture is not parametrized but depends on a parametrized 14:06:44 # fixture. 14:06:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:44 14:06:44 # Check for (and return) cached value/exception. 14:06:44 if self.cached_result is not None: 14:06:44 request_cache_key = self.cache_key(request) 14:06:44 cache_key = self.cached_result[1] 14:06:44 try: 14:06:44 # Attempt to make a normal == check: this might fail for objects 14:06:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:44 cache_hit = bool(request_cache_key == cache_key) 14:06:44 except (ValueError, RuntimeError): 14:06:44 # If the comparison raises, use 'is' as fallback. 14:06:44 cache_hit = request_cache_key is cache_key 14:06:44 14:06:44 if cache_hit: 14:06:44 if self.cached_result[2] is not None: 14:06:44 exc, exc_tb = self.cached_result[2] 14:06:44 raise exc.with_traceback(exc_tb) 14:06:44 else: 14:06:44 return self.cached_result[0] 14:06:44 # We have a previous but differently parametrized fixture instance 14:06:44 # so we need to tear it down before creating a new one. 14:06:44 self.finish(request) 14:06:44 assert self.cached_result is None 14:06:44 14:06:44 # Add finalizer to requested fixtures we saved previously. 14:06:44 # We make sure to do this after checking for cached value to avoid 14:06:44 # adding our finalizer multiple times. (#12135) 14:06:44 finalizer = functools.partial(self.finish, request=request) 14:06:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:44 parent_fixture.addfinalizer(finalizer) 14:06:44 14:06:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:44 # which is executed last. 14:06:44 > assert not self._finalizers 14:06:44 ^^^^^^^^^^^^^^^^^^^^ 14:06:44 E AssertionError 14:06:44 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:44 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_device_disconnected _ 14:06:44 14:06:44 cls = 14:06:44 func = . at 0x7f271bbcf600> 14:06:44 when = 'setup' 14:06:44 reraise = (, ) 14:06:44 14:06:44 @classmethod 14:06:44 def from_call( 14:06:44 cls, 14:06:44 func: Callable[[], TResult], 14:06:44 when: Literal["collect", "setup", "call", "teardown"], 14:06:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:44 ) -> CallInfo[TResult]: 14:06:44 """Call func, wrapping the result in a CallInfo. 14:06:44 14:06:44 :param func: 14:06:44 The function to call. Called without arguments. 14:06:44 :type func: Callable[[], _pytest.runner.TResult] 14:06:44 :param when: 14:06:44 The phase in which the function is called. 14:06:44 :param reraise: 14:06:44 Exception or exceptions that shall propagate if raised by the 14:06:44 function, instead of being wrapped in the CallInfo. 14:06:44 """ 14:06:44 excinfo = None 14:06:44 instant = timing.Instant() 14:06:44 try: 14:06:44 > result: TResult | None = func() 14:06:44 ^^^^^^ 14:06:44 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:44 lambda: runtest_hook(item=item, **kwds), 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:44 yield 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:44 return (yield) 14:06:44 ^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:44 item.session._setupstate.setup(item) 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:44 col.setup() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:44 super().setup() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:44 self._request._fillfixtures() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:44 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:44 fixturedef = self._get_active_fixturedef(argname) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:44 fixturedef.execute(request=subrequest) 14:06:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:44 14:06:44 self = 14:06:44 request = > 14:06:44 14:06:44 def execute(self, request: SubRequest) -> FixtureValue: 14:06:44 """Return the value of this fixture, executing it if not cached.""" 14:06:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:44 # This needs to be done before checking if we have a cached value, since 14:06:44 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:44 # parametrization, they finalize themselves and fixtures depending on it 14:06:44 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:44 # See #4871 14:06:44 requested_fixtures_that_should_finalize_us = [] 14:06:44 for argname in self.argnames: 14:06:44 fixturedef = request._get_active_fixturedef(argname) 14:06:44 # Saves requested fixtures in a list so we later can add our finalizer 14:06:44 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:44 # down first. This is generally handled by SetupState, but still currently 14:06:44 # needed when this fixture is not parametrized but depends on a parametrized 14:06:44 # fixture. 14:06:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:44 14:06:44 # Check for (and return) cached value/exception. 14:06:44 if self.cached_result is not None: 14:06:44 request_cache_key = self.cache_key(request) 14:06:44 cache_key = self.cached_result[1] 14:06:44 try: 14:06:44 # Attempt to make a normal == check: this might fail for objects 14:06:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:44 cache_hit = bool(request_cache_key == cache_key) 14:06:44 except (ValueError, RuntimeError): 14:06:44 # If the comparison raises, use 'is' as fallback. 14:06:44 cache_hit = request_cache_key is cache_key 14:06:44 14:06:44 if cache_hit: 14:06:44 if self.cached_result[2] is not None: 14:06:44 exc, exc_tb = self.cached_result[2] 14:06:44 raise exc.with_traceback(exc_tb) 14:06:44 else: 14:06:44 return self.cached_result[0] 14:06:44 # We have a previous but differently parametrized fixture instance 14:06:44 # so we need to tear it down before creating a new one. 14:06:44 self.finish(request) 14:06:44 assert self.cached_result is None 14:06:44 14:06:44 # Add finalizer to requested fixtures we saved previously. 14:06:44 # We make sure to do this after checking for cached value to avoid 14:06:44 # adding our finalizer multiple times. (#12135) 14:06:44 finalizer = functools.partial(self.finish, request=request) 14:06:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:44 parent_fixture.addfinalizer(finalizer) 14:06:44 14:06:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:44 # which is executed last. 14:06:44 > assert not self._finalizers 14:06:44 ^^^^^^^^^^^^^^^^^^^^ 14:06:44 E AssertionError 14:06:44 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:44 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_device_not_connected _ 14:06:44 14:06:44 cls = 14:06:44 func = . at 0x7f271bbcd120> 14:06:44 when = 'setup' 14:06:44 reraise = (, ) 14:06:44 14:06:44 @classmethod 14:06:44 def from_call( 14:06:44 cls, 14:06:44 func: Callable[[], TResult], 14:06:44 when: Literal["collect", "setup", "call", "teardown"], 14:06:44 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:44 ) -> CallInfo[TResult]: 14:06:44 """Call func, wrapping the result in a CallInfo. 14:06:44 14:06:44 :param func: 14:06:44 The function to call. Called without arguments. 14:06:44 :type func: Callable[[], _pytest.runner.TResult] 14:06:44 :param when: 14:06:44 The phase in which the function is called. 14:06:44 :param reraise: 14:06:44 Exception or exceptions that shall propagate if raised by the 14:06:44 function, instead of being wrapped in the CallInfo. 14:06:44 """ 14:06:44 excinfo = None 14:06:44 instant = timing.Instant() 14:06:44 try: 14:06:44 > result: TResult | None = func() 14:06:44 ^^^^^^ 14:06:44 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:44 lambda: runtest_hook(item=item, **kwds), 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:44 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:44 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:44 yield 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:44 return (yield) 14:06:44 ^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:44 item.session._setupstate.setup(item) 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:44 col.setup() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:44 super().setup() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:44 self._request._fillfixtures() 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:44 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:44 fixturedef = self._get_active_fixturedef(argname) 14:06:44 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:44 fixturedef.execute(request=subrequest) 14:06:44 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:44 14:06:44 self = 14:06:44 request = > 14:06:44 14:06:44 def execute(self, request: SubRequest) -> FixtureValue: 14:06:44 """Return the value of this fixture, executing it if not cached.""" 14:06:44 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:44 # This needs to be done before checking if we have a cached value, since 14:06:44 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:44 # parametrization, they finalize themselves and fixtures depending on it 14:06:44 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:44 # See #4871 14:06:44 requested_fixtures_that_should_finalize_us = [] 14:06:44 for argname in self.argnames: 14:06:44 fixturedef = request._get_active_fixturedef(argname) 14:06:44 # Saves requested fixtures in a list so we later can add our finalizer 14:06:44 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:44 # down first. This is generally handled by SetupState, but still currently 14:06:44 # needed when this fixture is not parametrized but depends on a parametrized 14:06:44 # fixture. 14:06:44 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:44 14:06:44 # Check for (and return) cached value/exception. 14:06:44 if self.cached_result is not None: 14:06:44 request_cache_key = self.cache_key(request) 14:06:44 cache_key = self.cached_result[1] 14:06:44 try: 14:06:44 # Attempt to make a normal == check: this might fail for objects 14:06:44 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:44 cache_hit = bool(request_cache_key == cache_key) 14:06:44 except (ValueError, RuntimeError): 14:06:44 # If the comparison raises, use 'is' as fallback. 14:06:44 cache_hit = request_cache_key is cache_key 14:06:44 14:06:44 if cache_hit: 14:06:44 if self.cached_result[2] is not None: 14:06:44 exc, exc_tb = self.cached_result[2] 14:06:44 raise exc.with_traceback(exc_tb) 14:06:44 else: 14:06:44 return self.cached_result[0] 14:06:44 # We have a previous but differently parametrized fixture instance 14:06:44 # so we need to tear it down before creating a new one. 14:06:44 self.finish(request) 14:06:44 assert self.cached_result is None 14:06:44 14:06:44 # Add finalizer to requested fixtures we saved previously. 14:06:44 # We make sure to do this after checking for cached value to avoid 14:06:44 # adding our finalizer multiple times. (#12135) 14:06:44 finalizer = functools.partial(self.finish, request=request) 14:06:44 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:44 parent_fixture.addfinalizer(finalizer) 14:06:44 14:06:44 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:44 # which is executed last. 14:06:44 > assert not self._finalizers 14:06:44 ^^^^^^^^^^^^^^^^^^^^ 14:06:44 E AssertionError 14:06:44 14:06:44 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:44 =========================== short test summary info ============================ 14:06:44 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_xpdr_device_connection 14:06:44 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_xpdr_device_connected 14:06:44 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_portmapping_info 14:06:44 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_tpdr_portmapping_NETWORK1 14:06:44 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_tpdr_portmapping_CLIENT1 14:06:44 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK1 14:06:44 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 14:06:44 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_check_mccapprofile 14:06:44 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_mpdr_switching_pool 14:06:44 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 14:06:44 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_device_disconnected 14:06:44 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_device_not_connected 14:06:44 12 errors in 102.26s (0:01:42) 14:06:44 tests71: exit 1 (102.54 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 pid=4623 14:06:45 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 14:06:54 ==================================== ERRORS ==================================== 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_01_connect_xpdrA _ 14:06:54 14:06:54 cls = 14:06:54 14:06:54 @classmethod 14:06:54 def setUpClass(cls): 14:06:54 > cls.processes = test_utils.start_tpce() 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 14:06:54 transportpce_tests/hybrid/test01_device_change_notifications.py:76: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 def start_tpce(): 14:06:54 if 'NO_ODL_STARTUP' in os.environ: 14:06:54 print('No OpenDaylight instance to start!') 14:06:54 return [] 14:06:54 print('starting OpenDaylight...') 14:06:54 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 14:06:54 process = start_lighty() 14:06:54 else: 14:06:54 process = start_karaf() 14:06:54 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 14:06:54 print('OpenDaylight started !') 14:06:54 else: 14:06:54 print('OpenDaylight failed to start !') 14:06:54 shutdown_process(process) 14:06:54 for pid in process_list: 14:06:54 shutdown_process(pid) 14:06:54 > sys.exit(1) 14:06:54 E SystemExit: 1 14:06:54 14:06:54 transportpce_tests/common/test_utils.py:234: SystemExit 14:06:54 ---------------------------- Captured stdout setup ----------------------------- 14:06:54 starting OpenDaylight... 14:06:54 starting KARAF (karaf221) TransportPCE build... 14:06:54 Pattern not found after 100 seconds! OpenDaylight failed to start ! 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_02_connect_xpdrC _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4c4ea20> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_03_connect_rdmA _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4ca3f60> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_04_connect_rdmC _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d734ef20> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_05_connect_xpdrA_N1_to_roadmA_PP1 _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4c4d440> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_06_connect_roadmA_PP1_to_xpdrA_N1 _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d65c53a0> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_07_connect_xpdrC_N1_to_roadmC_PP1 _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4c4d440> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_08_connect_roadmC_PP1_to_xpdrC_N1 _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4ca2700> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_09_add_omsAttributes_ROADMA_ROADMC _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4ca2980> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_10_add_omsAttributes_ROADMC_ROADMA _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4ca2700> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_11_create_eth_service1 _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4c4d440> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_12_get_eth_service1 _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4679940> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_13_change_status_line_port_xpdra _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4ca2700> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_14_check_update_portmapping _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4c4d440> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_15_check_update_openroadm_topo _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4679da0> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_16_check_update_service1 _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4c4d440> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_17_restore_status_line_port_xpdra _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4c4d8a0> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_18_check_update_portmapping_ok _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4ca28e0> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_19_check_update_openroadm_topo_ok _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4c4d8a0> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_20_check_update_service1_ok _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4ca2d40> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_21_change_status_port_roadma_srg _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4ca28e0> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_22_check_update_portmapping _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4ca2d40> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_23_check_update_openroadm_topo _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d467a0c0> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_24_restore_status_port_roadma_srg _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4ca2d40> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_25_check_update_portmapping_ok _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d467a0c0> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_26_check_update_openroadm_topo_ok _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4678860> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_27_check_update_service1_ok _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4ca2d40> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_28_change_status_line_port_roadma_deg _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4679440> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_29_check_update_portmapping _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4679260> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_30_check_update_openroadm_topo _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4ca2d40> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_31_restore_status_line_port_roadma_srg _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d46796c0> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_32_check_update_portmapping_ok _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4679800> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_33_check_update_openroadm_topo_ok _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4ca2d40> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_34_check_update_service1_ok _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4679d00> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_35_change_status_line_port_xpdrc _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4679800> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_36_check_update_portmapping _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4ca2d40> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_37_check_update_openroadm_topo _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4679f80> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_38_restore_status_line_port_xpdrc _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4ca2d40> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_39_check_update_portmapping_ok _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4678ea0> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_40_check_update_openroadm_topo_ok _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4679a80> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_41_check_update_service1_ok _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4ca2d40> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_42_change_status_port_roadma_srg _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4679a80> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_43_check_update_portmapping _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d467aa20> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_44_check_update_openroadm_topo _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4ca2d40> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_45_check_update_service1_ok _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d46799e0> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_46_delete_eth_service1 _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4679bc0> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_47_disconnect_xponders_from_roadm _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4ca2d40> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_48_disconnect_XPDRA _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4679f80> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_49_disconnect_XPDRC _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d467a5c0> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_50_disconnect_ROADMA _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d4ca2d40> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_51_disconnect_ROADMC _ 14:06:54 14:06:54 cls = 14:06:54 func = . at 0x7fa4d467a2a0> 14:06:54 when = 'setup' 14:06:54 reraise = (, ) 14:06:54 14:06:54 @classmethod 14:06:54 def from_call( 14:06:54 cls, 14:06:54 func: Callable[[], TResult], 14:06:54 when: Literal["collect", "setup", "call", "teardown"], 14:06:54 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 14:06:54 ) -> CallInfo[TResult]: 14:06:54 """Call func, wrapping the result in a CallInfo. 14:06:54 14:06:54 :param func: 14:06:54 The function to call. Called without arguments. 14:06:54 :type func: Callable[[], _pytest.runner.TResult] 14:06:54 :param when: 14:06:54 The phase in which the function is called. 14:06:54 :param reraise: 14:06:54 Exception or exceptions that shall propagate if raised by the 14:06:54 function, instead of being wrapped in the CallInfo. 14:06:54 """ 14:06:54 excinfo = None 14:06:54 instant = timing.Instant() 14:06:54 try: 14:06:54 > result: TResult | None = func() 14:06:54 ^^^^^^ 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 14:06:54 lambda: runtest_hook(item=item, **kwds), 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 14:06:54 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 14:06:54 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 14:06:54 yield 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 14:06:54 return (yield) 14:06:54 ^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 14:06:54 item.session._setupstate.setup(item) 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 14:06:54 col.setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 14:06:54 super().setup() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 14:06:54 self._request._fillfixtures() 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 14:06:54 item.funcargs[argname] = self.getfixturevalue(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 14:06:54 fixturedef = self._get_active_fixturedef(argname) 14:06:54 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 14:06:54 fixturedef.execute(request=subrequest) 14:06:54 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 14:06:54 14:06:54 self = 14:06:54 request = > 14:06:54 14:06:54 def execute(self, request: SubRequest) -> FixtureValue: 14:06:54 """Return the value of this fixture, executing it if not cached.""" 14:06:54 # Ensure that the dependent fixtures requested by this fixture are loaded. 14:06:54 # This needs to be done before checking if we have a cached value, since 14:06:54 # if a dependent fixture has their cache invalidated, e.g. due to 14:06:54 # parametrization, they finalize themselves and fixtures depending on it 14:06:54 # (which will likely include this fixture) setting `self.cached_result = None`. 14:06:54 # See #4871 14:06:54 requested_fixtures_that_should_finalize_us = [] 14:06:54 for argname in self.argnames: 14:06:54 fixturedef = request._get_active_fixturedef(argname) 14:06:54 # Saves requested fixtures in a list so we later can add our finalizer 14:06:54 # to them, ensuring that if a requested fixture gets torn down we get torn 14:06:54 # down first. This is generally handled by SetupState, but still currently 14:06:54 # needed when this fixture is not parametrized but depends on a parametrized 14:06:54 # fixture. 14:06:54 requested_fixtures_that_should_finalize_us.append(fixturedef) 14:06:54 14:06:54 # Check for (and return) cached value/exception. 14:06:54 if self.cached_result is not None: 14:06:54 request_cache_key = self.cache_key(request) 14:06:54 cache_key = self.cached_result[1] 14:06:54 try: 14:06:54 # Attempt to make a normal == check: this might fail for objects 14:06:54 # which do not implement the standard comparison (like numpy arrays -- #6497). 14:06:54 cache_hit = bool(request_cache_key == cache_key) 14:06:54 except (ValueError, RuntimeError): 14:06:54 # If the comparison raises, use 'is' as fallback. 14:06:54 cache_hit = request_cache_key is cache_key 14:06:54 14:06:54 if cache_hit: 14:06:54 if self.cached_result[2] is not None: 14:06:54 exc, exc_tb = self.cached_result[2] 14:06:54 raise exc.with_traceback(exc_tb) 14:06:54 else: 14:06:54 return self.cached_result[0] 14:06:54 # We have a previous but differently parametrized fixture instance 14:06:54 # so we need to tear it down before creating a new one. 14:06:54 self.finish(request) 14:06:54 assert self.cached_result is None 14:06:54 14:06:54 # Add finalizer to requested fixtures we saved previously. 14:06:54 # We make sure to do this after checking for cached value to avoid 14:06:54 # adding our finalizer multiple times. (#12135) 14:06:54 finalizer = functools.partial(self.finish, request=request) 14:06:54 for parent_fixture in requested_fixtures_that_should_finalize_us: 14:06:54 parent_fixture.addfinalizer(finalizer) 14:06:54 14:06:54 # Register the pytest_fixture_post_finalizer as the first finalizer, 14:06:54 # which is executed last. 14:06:54 > assert not self._finalizers 14:06:54 ^^^^^^^^^^^^^^^^^^^^ 14:06:54 E AssertionError 14:06:54 14:06:54 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 14:06:54 =========================== short test summary info ============================ 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_01_connect_xpdrA 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_02_connect_xpdrC 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_03_connect_rdmA 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_04_connect_rdmC 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_05_connect_xpdrA_N1_to_roadmA_PP1 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_06_connect_roadmA_PP1_to_xpdrA_N1 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_07_connect_xpdrC_N1_to_roadmC_PP1 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_08_connect_roadmC_PP1_to_xpdrC_N1 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_09_add_omsAttributes_ROADMA_ROADMC 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_10_add_omsAttributes_ROADMC_ROADMA 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_11_create_eth_service1 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_12_get_eth_service1 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_13_change_status_line_port_xpdra 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_14_check_update_portmapping 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_15_check_update_openroadm_topo 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_16_check_update_service1 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_17_restore_status_line_port_xpdra 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_18_check_update_portmapping_ok 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_19_check_update_openroadm_topo_ok 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_20_check_update_service1_ok 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_21_change_status_port_roadma_srg 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_22_check_update_portmapping 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_23_check_update_openroadm_topo 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_24_restore_status_port_roadma_srg 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_25_check_update_portmapping_ok 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_26_check_update_openroadm_topo_ok 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_27_check_update_service1_ok 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_28_change_status_line_port_roadma_deg 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_29_check_update_portmapping 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_30_check_update_openroadm_topo 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_31_restore_status_line_port_roadma_srg 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_32_check_update_portmapping_ok 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_33_check_update_openroadm_topo_ok 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_34_check_update_service1_ok 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_35_change_status_line_port_xpdrc 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_36_check_update_portmapping 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_37_check_update_openroadm_topo 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_38_restore_status_line_port_xpdrc 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_39_check_update_portmapping_ok 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_40_check_update_openroadm_topo_ok 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_41_check_update_service1_ok 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_42_change_status_port_roadma_srg 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_43_check_update_portmapping 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_44_check_update_openroadm_topo 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_45_check_update_service1_ok 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_46_delete_eth_service1 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_47_disconnect_xponders_from_roadm 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_48_disconnect_XPDRA 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_49_disconnect_XPDRC 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_50_disconnect_ROADMA 14:06:54 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_51_disconnect_ROADMC 14:06:54 51 errors in 109.68s (0:01:49) 14:06:54 tests71: FAIL ✖ in 1 minute 50.97 seconds 14:06:54 tests_hybrid: exit 1 (109.94 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid pid=4639 14:06:54 buildcontroller: FAIL code 1 (8.57=setup[8.00]+cmd[0.58] seconds) 14:06:54 sims: OK (12.89=setup[7.67]+cmd[5.22] seconds) 14:06:54 testsPCE: FAIL code 1 (173.71=setup[49.70]+cmd[124.02] seconds) 14:06:54 build_karaf_tests221: FAIL code 127 (7.09=setup[7.07]+cmd[0.02] seconds) 14:06:54 tests_tapi: FAIL code 1 (117.81=setup[8.21]+cmd[109.60] seconds) 14:06:54 tests221: FAIL code 1 (115.24=setup[8.54]+cmd[106.70] seconds) 14:06:54 build_karaf_tests71: FAIL code 127 (6.80=setup[6.80]+cmd[0.00] seconds) 14:06:54 tests71: FAIL code 1 (110.97=setup[8.43]+cmd[102.54] seconds) 14:06:54 build_karaf_tests200: FAIL code 127 (6.41=setup[6.40]+cmd[0.01] seconds) 14:06:54 tests200: FAIL code 1 (110.59=setup[8.42]+cmd[102.17] seconds) 14:06:54 tests_hybrid: FAIL code 1 (116.33=setup[6.38]+cmd[109.94] seconds) 14:06:54 buildlighty: FAIL code 9 (6.94=setup[6.93]+cmd[0.01] seconds) 14:06:54 docs: OK (16.90=setup[14.04]+cmd[2.86] seconds) 14:06:54 docs-linkcheck: OK (18.85=setup[14.12]+cmd[4.73] seconds) 14:06:54 checkbashisms: OK (3.18=setup[1.97]+cmd[0.00,0.04,1.16] seconds) 14:06:54 pre-commit: OK (55.44=setup[2.87]+cmd[0.00,0.00,43.97,8.60] seconds) 14:06:54 pylint: FAIL code 1 (21.97=setup[4.08]+cmd[17.89] seconds) 14:06:54 evaluation failed :( (553.68 seconds) 14:06:54 + tox_status=1 14:06:54 + echo '---> Completed tox runs' 14:06:54 ---> Completed tox runs 14:06:54 + for i in .tox/*/log 14:06:54 ++ echo .tox/build_karaf_tests200/log 14:06:54 ++ awk -F/ '{print $2}' 14:06:54 + tox_env=build_karaf_tests200 14:06:54 + cp -r .tox/build_karaf_tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests200 14:06:54 + for i in .tox/*/log 14:06:54 ++ echo .tox/build_karaf_tests221/log 14:06:54 ++ awk -F/ '{print $2}' 14:06:54 + tox_env=build_karaf_tests221 14:06:54 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests221 14:06:54 + for i in .tox/*/log 14:06:54 ++ echo .tox/build_karaf_tests71/log 14:06:54 ++ awk -F/ '{print $2}' 14:06:54 + tox_env=build_karaf_tests71 14:06:54 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests71 14:06:54 + for i in .tox/*/log 14:06:54 ++ echo .tox/buildcontroller/log 14:06:54 ++ awk -F/ '{print $2}' 14:06:54 + tox_env=buildcontroller 14:06:54 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildcontroller 14:06:54 + for i in .tox/*/log 14:06:54 ++ echo .tox/buildlighty/log 14:06:54 ++ awk -F/ '{print $2}' 14:06:54 + tox_env=buildlighty 14:06:54 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildlighty 14:06:54 + for i in .tox/*/log 14:06:54 ++ echo .tox/checkbashisms/log 14:06:54 ++ awk -F/ '{print $2}' 14:06:54 + tox_env=checkbashisms 14:06:54 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/checkbashisms 14:06:54 + for i in .tox/*/log 14:06:54 ++ echo .tox/docs-linkcheck/log 14:06:54 ++ awk -F/ '{print $2}' 14:06:54 + tox_env=docs-linkcheck 14:06:54 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs-linkcheck 14:06:54 + for i in .tox/*/log 14:06:54 ++ echo .tox/docs/log 14:06:54 ++ awk -F/ '{print $2}' 14:06:54 + tox_env=docs 14:06:54 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs 14:06:54 + for i in .tox/*/log 14:06:54 ++ echo .tox/pre-commit/log 14:06:54 ++ awk -F/ '{print $2}' 14:06:54 + tox_env=pre-commit 14:06:54 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pre-commit 14:06:54 + for i in .tox/*/log 14:06:54 ++ echo .tox/pylint/log 14:06:54 ++ awk -F/ '{print $2}' 14:06:54 + tox_env=pylint 14:06:54 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pylint 14:06:54 + for i in .tox/*/log 14:06:54 ++ echo .tox/sims/log 14:06:54 ++ awk -F/ '{print $2}' 14:06:54 + tox_env=sims 14:06:54 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/sims 14:06:54 + for i in .tox/*/log 14:06:54 ++ echo .tox/tests200/log 14:06:54 ++ awk -F/ '{print $2}' 14:06:54 + tox_env=tests200 14:06:54 + cp -r .tox/tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests200 14:06:54 + for i in .tox/*/log 14:06:54 ++ echo .tox/tests221/log 14:06:54 ++ awk -F/ '{print $2}' 14:06:54 + tox_env=tests221 14:06:54 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests221 14:06:54 + for i in .tox/*/log 14:06:54 ++ echo .tox/tests71/log 14:06:54 ++ awk -F/ '{print $2}' 14:06:54 + tox_env=tests71 14:06:54 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests71 14:06:54 + for i in .tox/*/log 14:06:54 ++ echo .tox/testsPCE/log 14:06:54 ++ awk -F/ '{print $2}' 14:06:54 + tox_env=testsPCE 14:06:54 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/testsPCE 14:06:54 + for i in .tox/*/log 14:06:54 ++ echo .tox/tests_hybrid/log 14:06:54 ++ awk -F/ '{print $2}' 14:06:54 + tox_env=tests_hybrid 14:06:54 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_hybrid 14:06:54 + for i in .tox/*/log 14:06:54 ++ echo .tox/tests_tapi/log 14:06:54 ++ awk -F/ '{print $2}' 14:06:54 + tox_env=tests_tapi 14:06:54 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_tapi 14:06:54 + DOC_DIR=docs/_build/html 14:06:54 + [[ -d docs/_build/html ]] 14:06:54 + echo '---> Archiving generated docs' 14:06:54 ---> Archiving generated docs 14:06:54 + mv docs/_build/html /w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 14:06:54 + echo '---> tox-run.sh ends' 14:06:54 ---> tox-run.sh ends 14:06:54 + test 1 -eq 0 14:06:54 + exit 1 14:06:54 ++ '[' 1 = 1 ']' 14:06:54 ++ '[' -x /usr/bin/clear_console ']' 14:06:54 ++ /usr/bin/clear_console -q 14:06:54 Build step 'Execute shell' marked build as failure 14:06:54 $ ssh-agent -k 14:06:54 unset SSH_AUTH_SOCK; 14:06:54 unset SSH_AGENT_PID; 14:06:54 echo Agent pid 1571 killed; 14:06:54 [ssh-agent] Stopped. 14:06:54 [PostBuildScript] - [INFO] Executing post build scripts. 14:06:54 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins488858059137985978.sh 14:06:54 ---> sysstat.sh 14:06:54 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins1720625105503708283.sh 14:06:54 ---> package-listing.sh 14:06:54 + '[' -f /etc/os-release ']' 14:06:54 + . /etc/os-release 14:06:54 ++ PRETTY_NAME='Ubuntu 22.04.5 LTS' 14:06:54 ++ NAME=Ubuntu 14:06:54 ++ VERSION_ID=22.04 14:06:54 ++ VERSION='22.04.5 LTS (Jammy Jellyfish)' 14:06:54 ++ VERSION_CODENAME=jammy 14:06:54 ++ ID=ubuntu 14:06:54 ++ ID_LIKE=debian 14:06:54 ++ HOME_URL=https://www.ubuntu.com/ 14:06:54 ++ SUPPORT_URL=https://help.ubuntu.com/ 14:06:54 ++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/ 14:06:54 ++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy 14:06:54 ++ UBUNTU_CODENAME=jammy 14:06:54 + case " ${ID:-} ${ID_LIKE:-} " in 14:06:54 + OS_FAMILY=debian 14:06:54 + workspace=/w/workspace/transportpce-tox-verify-transportpce-master 14:06:54 + START_PACKAGES=/tmp/packages_start.txt 14:06:54 + END_PACKAGES=/tmp/packages_end.txt 14:06:54 + DIFF_PACKAGES=/tmp/packages_diff.txt 14:06:54 + PACKAGES=/tmp/packages_start.txt 14:06:54 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 14:06:54 + PACKAGES=/tmp/packages_end.txt 14:06:54 + case "${OS_FAMILY}" in 14:06:54 + dpkg -l 14:06:54 + grep '^ii' 14:06:54 + '[' -f /tmp/packages_start.txt ']' 14:06:54 + '[' -f /tmp/packages_end.txt ']' 14:06:54 + diff /tmp/packages_start.txt /tmp/packages_end.txt 14:06:54 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 14:06:54 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 14:06:54 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 14:06:54 + exit 0 14:06:54 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins13219516040321919346.sh 14:06:54 ---> capture-instance-metadata.sh 14:06:54 Setup pyenv: 14:06:54 system 14:06:54 3.8.20 14:06:54 3.9.20 14:06:54 3.10.15 14:06:55 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 14:06:55 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-vrMh from file:/tmp/.os_lf_venv 14:06:55 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:06:57 lf-activate-venv(): INFO: Installing additional packages: lftools 14:07:13 lf-activate-venv(): INFO: Adding /tmp/venv-vrMh/bin to PATH 14:07:13 INFO: Running in OpenStack, capturing instance metadata 14:07:14 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins10715746282550734939.sh 14:07:14 provisioning config files... 14:07:14 Could not find credentials [logs] for transportpce-tox-verify-transportpce-master #6264 14:07:14 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-transportpce-master@tmp/config8456014234969192695tmp 14:07:14 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 14:07:14 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 14:07:14 provisioning config files... 14:07:15 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 14:07:15 [EnvInject] - Injecting environment variables from a build step. 14:07:15 [EnvInject] - Injecting as environment variables the properties content 14:07:15 SERVER_ID=logs 14:07:15 14:07:15 [EnvInject] - Variables injected successfully. 14:07:15 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins238090205901660214.sh 14:07:15 ---> create-netrc.sh 14:07:15 WARN: Log server credential not found. 14:07:15 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins10989061014047107408.sh 14:07:15 ---> python-tools-install.sh 14:07:15 Setup pyenv: 14:07:15 system 14:07:15 3.8.20 14:07:15 3.9.20 14:07:15 3.10.15 14:07:15 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 14:07:15 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-vrMh from file:/tmp/.os_lf_venv 14:07:15 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:07:17 lf-activate-venv(): INFO: Installing additional packages: lftools 14:07:26 lf-activate-venv(): INFO: Adding /tmp/venv-vrMh/bin to PATH 14:07:26 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins2461160153325034226.sh 14:07:26 ---> uv-install.sh 14:07:26 uv 0.13.0 is already installed 14:07:26 uvx 0.13.0 (x86_64-unknown-linux-gnu) 14:07:26 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins12874380279866879346.sh 14:07:26 ---> sudo-logs.sh 14:07:26 Archiving 'sudo' log.. 14:07:26 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins10999306440028403009.sh 14:07:26 ---> job-cost.sh 14:07:26 INFO: Activating Python virtual environment... 14:07:26 Setup pyenv: 14:07:26 system 14:07:26 3.8.20 14:07:26 3.9.20 14:07:26 3.10.15 14:07:26 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 14:07:27 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-vrMh from file:/tmp/.os_lf_venv 14:07:27 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:07:28 lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 14:07:36 lf-activate-venv(): INFO: Adding /tmp/venv-vrMh/bin to PATH 14:07:36 INFO: No stack-cost file found 14:07:36 INFO: Instance uptime: 725s 14:07:36 INFO: Fetching instance metadata (attempt 1 of 3)... 14:07:36 DEBUG: URL: http://169.254.169.254/latest/meta-data/instance-type 14:07:37 INFO: Successfully fetched instance metadata 14:07:37 INFO: Instance type: v3-standard-4 14:07:37 INFO: Retrieving pricing info for: v3-standard-4 14:07:37 INFO: Fetching Vexxhost pricing API (attempt 1 of 3)... 14:07:37 DEBUG: URL: https://pricing.vexxhost.net/v1/pricing/v3-standard-4/cost?seconds=725 14:07:37 INFO: Successfully fetched Vexxhost pricing API 14:07:37 INFO: Retrieved cost: 0.11 14:07:37 INFO: Retrieved resource: v3-standard-4 14:07:37 INFO: Creating archive directory: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost 14:07:37 INFO: Archiving costs to: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost.csv 14:07:37 INFO: Successfully archived job cost data 14:07:37 DEBUG: Cost data: transportpce-tox-verify-transportpce-master,6264,2026-10-13 14:07:37,v3-standard-4,725,0.11,0.00,FAILURE 14:07:37 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins14200610078295607254.sh 14:07:37 ---> logs-deploy.sh 14:07:37 Setup pyenv: 14:07:37 system 14:07:37 3.8.20 14:07:37 3.9.20 14:07:37 3.10.15 14:07:37 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 14:07:37 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-vrMh from file:/tmp/.os_lf_venv 14:07:37 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 14:07:39 lf-activate-venv(): INFO: Installing additional packages: lftools urllib3~=1.26.15 14:07:48 lf-activate-venv(): INFO: Adding /tmp/venv-vrMh/bin to PATH 14:07:48 WARNING: Nexus logging server not set 14:07:48 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-transportpce-master/6264/ 14:07:48 INFO: archiving logs to S3 14:07:50 ---> uname -a: 14:07:50 Linux prd-ubuntu2204-docker-4c-16g-64903 5.15.0-198-generic #208-Ubuntu SMP Fri Sep 4 10:22:38 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux 14:07:50 14:07:50 14:07:50 ---> lscpu: 14:07:50 Architecture: x86_64 14:07:50 CPU op-mode(s): 32-bit, 64-bit 14:07:50 Address sizes: 40 bits physical, 48 bits virtual 14:07:50 Byte Order: Little Endian 14:07:50 CPU(s): 4 14:07:50 On-line CPU(s) list: 0-3 14:07:50 Vendor ID: AuthenticAMD 14:07:50 Model name: AMD EPYC-Rome Processor 14:07:50 CPU family: 23 14:07:50 Model: 49 14:07:50 Thread(s) per core: 1 14:07:50 Core(s) per socket: 1 14:07:50 Socket(s): 4 14:07:50 Stepping: 0 14:07:50 BogoMIPS: 5600.00 14:07:50 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 14:07:50 Virtualization: AMD-V 14:07:50 Hypervisor vendor: KVM 14:07:50 Virtualization type: full 14:07:50 L1d cache: 128 KiB (4 instances) 14:07:50 L1i cache: 128 KiB (4 instances) 14:07:50 L2 cache: 2 MiB (4 instances) 14:07:50 L3 cache: 64 MiB (4 instances) 14:07:50 NUMA node(s): 1 14:07:50 NUMA node0 CPU(s): 0-3 14:07:50 Vulnerability Gather data sampling: Not affected 14:07:50 Vulnerability Indirect target selection: Not affected 14:07:50 Vulnerability Itlb multihit: Not affected 14:07:50 Vulnerability L1tf: Not affected 14:07:50 Vulnerability Mds: Not affected 14:07:50 Vulnerability Meltdown: Not affected 14:07:50 Vulnerability Mmio stale data: Not affected 14:07:50 Vulnerability Reg file data sampling: Not affected 14:07:50 Vulnerability Retbleed: Mitigation; untrained return thunk; SMT disabled 14:07:50 Vulnerability Spec rstack overflow: Mitigation; SMT disabled 14:07:50 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 14:07:50 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 14:07:50 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 14:07:50 Vulnerability Srbds: Not affected 14:07:50 Vulnerability Tsa: Not affected 14:07:50 Vulnerability Tsx async abort: Not affected 14:07:50 Vulnerability Vmscape: Not affected 14:07:50 14:07:50 14:07:50 ---> nproc: 14:07:50 4 14:07:50 14:07:50 14:07:50 ---> df -h: 14:07:50 Filesystem Size Used Avail Use% Mounted on 14:07:50 tmpfs 1.6G 1.1M 1.6G 1% /run 14:07:50 /dev/vda1 78G 11G 67G 15% / 14:07:50 tmpfs 7.9G 0 7.9G 0% /dev/shm 14:07:50 tmpfs 5.0M 0 5.0M 0% /run/lock 14:07:50 /dev/vda15 105M 6.1M 99M 6% /boot/efi 14:07:50 tmpfs 1.6G 4.0K 1.6G 1% /run/user/1001 14:07:50 14:07:50 14:07:50 ---> free -m: 14:07:50 total used free shared buff/cache available 14:07:50 Mem: 15989 705 9720 4 5563 14940 14:07:50 Swap: 1023 0 1023 14:07:50 14:07:50 14:07:50 ---> ip addr: 14:07:50 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 14:07:50 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 14:07:50 inet 127.0.0.1/8 scope host lo 14:07:50 valid_lft forever preferred_lft forever 14:07:50 inet6 ::1/128 scope host 14:07:50 valid_lft forever preferred_lft forever 14:07:50 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 14:07:50 link/ether fa:16:3e:ed:92:98 brd ff:ff:ff:ff:ff:ff 14:07:50 altname enp0s3 14:07:50 inet 10.30.170.107/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 14:07:50 valid_lft 85671sec preferred_lft 85671sec 14:07:50 inet6 fe80::f816:3eff:feed:9298/64 scope link 14:07:50 valid_lft forever preferred_lft forever 14:07:50 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 14:07:50 link/ether ea:8c:99:3a:56:c3 brd ff:ff:ff:ff:ff:ff 14:07:50 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 14:07:50 valid_lft forever preferred_lft forever 14:07:50 inet6 fe80::e88c:99ff:fe3a:56c3/64 scope link 14:07:50 valid_lft forever preferred_lft forever 14:07:50 14:07:50 14:07:50 ---> sar -b -r -n DEV: 14:07:50 Linux 5.15.0-198-generic (prd-ubuntu2204-docker-4c-16g-64903) 10/13/26 _x86_64_ (4 CPU) 14:07:50 14:07:50 13:55:44 LINUX RESTART (4 CPU) 14:07:50 14:07:50 14:07:50 ---> sar -P ALL: 14:07:50 Linux 5.15.0-198-generic (prd-ubuntu2204-docker-4c-16g-64903) 10/13/26 _x86_64_ (4 CPU) 14:07:50 14:07:50 13:55:44 LINUX RESTART (4 CPU) 14:07:50 14:07:50 14:07:50