05:04:47 Triggered by Gerrit: https://git.opendaylight.org/gerrit/c/transportpce/+/124847 05:04:47 Running as SYSTEM 05:04:47 [EnvInject] - Loading node environment variables. 05:04:47 Building remotely on prd-ubuntu2204-docker-4c-16g-62869 (ubuntu2204-docker-4c-16g) in workspace /w/workspace/transportpce-tox-verify-transportpce-master 05:04:48 [ssh-agent] Looking for ssh-agent implementation... 05:04:48 [ssh-agent] Exec ssh-agent (binary ssh-agent on a remote machine) 05:04:48 $ ssh-agent 05:04:48 SSH_AUTH_SOCK=/tmp/ssh-XXXXXXZE8JAd/agent.1568 05:04:48 SSH_AGENT_PID=1570 05:04:48 [ssh-agent] Started. 05:04:48 Running ssh-add (command line suppressed) 05:04:48 Identity added: /w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_3613605117150474072.key (/w/workspace/transportpce-tox-verify-transportpce-master@tmp/private_key_3613605117150474072.key) 05:04:48 [ssh-agent] Using credentials jenkins (jenkins-ssh) 05:04:48 The recommended git tool is: NONE 05:04:50 using credential jenkins-ssh 05:04:50 Wiping out workspace first. 05:04:50 Cloning the remote Git repository 05:04:50 Cloning repository git://devvexx.opendaylight.org/mirror/transportpce 05:04:50 > git init /w/workspace/transportpce-tox-verify-transportpce-master # timeout=10 05:04:50 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 05:04:50 > git --version # timeout=10 05:04:50 > git --version # 'git version 2.34.1' 05:04:50 using GIT_SSH to set credentials jenkins-ssh 05:04:50 Verifying host key using known hosts file, will automatically accept unseen keys 05:04:50 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce +refs/heads/*:refs/remotes/origin/* # timeout=10 05:04:54 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 05:04:54 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 05:04:54 > git config remote.origin.url git://devvexx.opendaylight.org/mirror/transportpce # timeout=10 05:04:54 Fetching upstream changes from git://devvexx.opendaylight.org/mirror/transportpce 05:04:54 using GIT_SSH to set credentials jenkins-ssh 05:04:54 Verifying host key using known hosts file, will automatically accept unseen keys 05:04:54 > git fetch --tags --force --progress -- git://devvexx.opendaylight.org/mirror/transportpce refs/changes/47/124847/5 # timeout=10 05:04:55 > git rev-parse 83ffa6eb102fcd794a01400f123dff7b30cd4f0b^{commit} # timeout=10 05:04:55 JENKINS-19022: warning: possible memory leak due to Git plugin usage; see: https://plugins.jenkins.io/git/#remove-git-plugin-buildsbybranch-builddata-script 05:04:55 Checking out Revision 83ffa6eb102fcd794a01400f123dff7b30cd4f0b (refs/changes/47/124847/5) 05:04:55 > git config core.sparsecheckout # timeout=10 05:04:55 > git checkout -f 83ffa6eb102fcd794a01400f123dff7b30cd4f0b # timeout=10 05:04:58 Commit message: "common: fix EventSubscriber thread-safety bugs" 05:04:58 > git rev-parse FETCH_HEAD^{commit} # timeout=10 05:04:58 > git rev-list --no-walk bfd2c47e37d47f66796eaf948699644129552e69 # timeout=10 05:04:58 > git remote # timeout=10 05:04:58 > git submodule init # timeout=10 05:04:58 > git submodule sync # timeout=10 05:04:58 > git config --get remote.origin.url # timeout=10 05:04:58 > git submodule init # timeout=10 05:04:58 > git config -f .gitmodules --get-regexp ^submodule\.(.+)\.url # timeout=10 05:04:58 ERROR: No submodules found. 05:04:59 provisioning config files... 05:04:59 copy managed file [npmrc] to file:/home/jenkins/.npmrc 05:04:59 copy managed file [pipconf] to file:/home/jenkins/.config/pip/pip.conf 05:04:59 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins17212450842934128356.sh 05:04:59 ---> python-tools-install.sh 05:04:59 Setup pyenv: 05:04:59 * system (set by /opt/pyenv/version) 05:04:59 * 3.8.20 (set by /opt/pyenv/version) 05:04:59 * 3.9.20 (set by /opt/pyenv/version) 05:04:59 3.10.15 05:04:59 3.11.10 05:05:04 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-VqG0 05:05:04 lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv 05:05:04 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 05:05:08 lf-activate-venv(): INFO: Installing additional packages: lftools 05:05:32 lf-activate-venv(): INFO: Adding /tmp/venv-VqG0/bin to PATH 05:05:32 Generating Requirements File 05:06:03 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. 05:06:03 httplib2 0.30.2 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. 05:06:04 Python 3.11.10 05:06:04 pip 26.2.1 from /tmp/venv-VqG0/lib/python3.11/site-packages/pip (python 3.11) 05:06:04 aiohappyeyeballs==2.7.1 05:06:04 aiohttp==3.14.4 05:06:04 aiosignal==1.4.0 05:06:04 appdirs==1.4.4 05:06:04 argcomplete==3.7.2 05:06:04 aspy.yaml==1.3.0 05:06:04 attrs==26.1.0 05:06:04 autopage==0.6.0 05:06:04 beautifulsoup4==4.15.0 05:06:04 boto3==1.43.109 05:06:04 botocore==1.43.109 05:06:04 bs4==0.0.2 05:06:04 certifi==2026.7.22 05:06:04 cffi==2.1.1 05:06:04 cfgv==3.5.0 05:06:04 chardet==7.6.0 05:06:04 charset-normalizer==3.5.2 05:06:04 click==8.5.0 05:06:04 cliff==4.16.0 05:06:04 cmd2==4.2.4 05:06:04 cryptography==3.3.2 05:06:04 debtcollector==3.1.0 05:06:04 decorator==5.3.1 05:06:04 defusedxml==0.7.1 05:06:04 Deprecated==1.3.1 05:06:04 distlib==0.4.3 05:06:04 dnspython==2.8.0 05:06:04 docker==7.2.0 05:06:04 dogpile.cache==1.5.0 05:06:04 durationpy==0.11 05:06:04 email-validator==2.3.0 05:06:04 filelock==4.0.12 05:06:04 frozenlist==1.8.0 05:06:04 future==1.0.0 05:06:04 gitdb==4.0.12 05:06:04 GitPython==3.2.0 05:06:04 httplib2==0.30.2 05:06:04 identify==2.6.20 05:06:04 idna==3.20 05:06:04 importlib-resources==1.5.0 05:06:04 iso8601==2.1.0 05:06:04 Jinja2==3.1.6 05:06:04 jmespath==1.1.0 05:06:04 jsonpatch==1.33 05:06:04 jsonpointer==3.2.0 05:06:04 jsonschema==4.26.0 05:06:04 jsonschema-specifications==2025.9.1 05:06:04 keystoneauth1==5.18.0 05:06:04 kubernetes==36.0.3 05:06:04 lftools==0.37.23 05:06:04 lxml==6.1.3 05:06:04 markdown-it-py==4.2.0 05:06:04 MarkupSafe==3.0.4 05:06:04 mdurl==0.1.2 05:06:04 msgpack==1.2.3 05:06:04 multi_key_dict==2.0.3 05:06:04 multidict==6.9.1 05:06:04 munch==4.0.0 05:06:04 netaddr==1.3.0 05:06:04 niet==1.4.2 05:06:04 nodeenv==1.11.0 05:06:04 oauth2client==4.1.3 05:06:04 oauthlib==4.0.0 05:06:04 openstacksdk==4.21.0 05:06:04 os-service-types==1.9.0 05:06:04 osc-lib==4.7.0 05:06:04 oslo.config==10.7.0 05:06:04 oslo.context==6.5.0 05:06:04 oslo.i18n==6.9.0 05:06:04 oslo.log==8.3.2 05:06:04 oslo.serialization==5.11.0 05:06:04 oslo.utils==10.2.0 05:06:04 packaging==26.3 05:06:04 pbr==7.1.3 05:06:04 platformdirs==4.12.4 05:06:04 prettytable==3.18.0 05:06:04 prompt_toolkit==3.0.53 05:06:04 propcache==0.5.4 05:06:04 psutil==7.2.2 05:06:04 pyasn1==0.6.4 05:06:04 pyasn1_modules==0.4.2 05:06:04 pycparser==3.0 05:06:04 pygerrit2==2.0.15 05:06:04 PyGithub==2.10.0 05:06:04 Pygments==2.21.0 05:06:04 PyJWT==2.15.1 05:06:04 PyNaCl==1.6.2 05:06:04 pyparsing==2.4.7 05:06:04 pyperclip==1.11.0 05:06:04 pyrsistent==0.20.0 05:06:04 python-dateutil==2.9.0.post0 05:06:04 python-discovery==1.6.1 05:06:04 python-heatclient==5.3.0 05:06:04 python-jenkins==1.8.3 05:06:04 python-keystoneclient==6.0.0 05:06:04 python-magnumclient==5.0.0 05:06:04 python-manilaclient==6.3.0 05:06:04 python-openstackclient==10.3.0 05:06:04 python-swiftclient==4.11.0 05:06:04 PyYAML==6.0.3 05:06:04 referencing==0.37.0 05:06:04 requests==2.34.2 05:06:04 requests-oauthlib==2.0.0 05:06:04 rfc3986==2.0.0 05:06:04 rich==15.0.0 05:06:04 rich-argparse==1.8.0 05:06:04 rpds-py==2026.9.1 05:06:04 rsa==4.9.1 05:06:04 ruamel.yaml==0.19.1 05:06:04 ruamel.yaml.clib==0.2.15 05:06:04 s3transfer==0.19.2 05:06:04 simplejson==4.2.0 05:06:04 six==1.17.0 05:06:04 smmap==5.0.3 05:06:04 soupsieve==2.10 05:06:04 stevedore==5.9.1 05:06:04 tabulate==0.10.0 05:06:04 toml==0.10.2 05:06:04 tomlkit==0.15.1 05:06:04 tqdm==4.70.1 05:06:04 typing_extensions==4.16.0 05:06:04 urllib3==1.26.20 05:06:04 virtualenv==21.14.5 05:06:04 wcwidth==0.9.2 05:06:04 websocket-client==1.9.2 05:06:04 wrapt==2.5.0 05:06:04 xdg==6.0.0 05:06:04 xmltodict==1.0.4 05:06:04 yarl==1.25.1 05:06:04 yq==4.4.0 05:06:04 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins2911736382103154130.sh 05:06:04 ---> uv-install.sh 05:06:04 Installing uv/uvx (latest) using shell installer 05:06:04 2026-10-08 05:06:04 URL:https://releases.astral.sh/installers/uv/latest/uv-installer.sh [71308/71308] -> "/tmp/uv-install-Ea99a3.sh" [1] 05:06:04 downloading uv 0.12.23 x86_64-unknown-linux-gnu 05:06:05 installing to /home/jenkins/.local/bin 05:06:05 uv 05:06:05 uvx 05:06:05 everything's installed! 05:06:05 05:06:05 To add $HOME/.local/bin to your PATH, either restart your shell or run: 05:06:05 05:06:05 source $HOME/.local/bin/env (sh, bash, zsh) 05:06:05 source $HOME/.local/bin/env.fish (fish) 05:06:05 Adding install location to PATH 05:06:05 ---> Validating uv/uvx install 05:06:05 uvx 0.12.23 (x86_64-unknown-linux-gnu) 05:06:05 [EnvInject] - Injecting environment variables from a build step. 05:06:05 [EnvInject] - Injecting as environment variables the properties content 05:06:05 PYTHON=python3 05:06:05 05:06:05 [EnvInject] - Variables injected successfully. 05:06:05 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins12495076708121702815.sh 05:06:05 ---> tox-install.sh 05:06:05 + source /home/jenkins/lf-env.sh 05:06:05 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 05:06:05 ++ mktemp -d /tmp/venv-XXXX 05:06:05 + lf_venv=/tmp/venv-zzD8 05:06:05 + local venv_file=/tmp/.os_lf_venv 05:06:05 + local python=python3 05:06:05 + local options 05:06:05 + local set_path=true 05:06:05 + local install_args= 05:06:05 ++ 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 05:06:05 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 05:06:05 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 05:06:05 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 05:06:05 + true 05:06:05 + case $1 in 05:06:05 + venv_file=/tmp/.toxenv 05:06:05 + shift 2 05:06:05 + true 05:06:05 + case $1 in 05:06:05 + shift 05:06:05 + break 05:06:05 + case $python in 05:06:05 + local pkg_list= 05:06:05 + [[ -d /opt/pyenv ]] 05:06:05 + echo 'Setup pyenv:' 05:06:05 Setup pyenv: 05:06:05 + export PYENV_ROOT=/opt/pyenv 05:06:05 + PYENV_ROOT=/opt/pyenv 05:06:05 + 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 05:06:05 + 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 05:06:05 + pyenv versions 05:06:05 system 05:06:05 3.8.20 05:06:05 3.9.20 05:06:05 3.10.15 05:06:05 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 05:06:05 + command -v pyenv 05:06:05 ++ pyenv init - --no-rehash 05:06:05 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 05:06:05 for i in ${!paths[@]}; do 05:06:05 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 05:06:05 fi; done; 05:06:05 echo "${paths[*]}"'\'')" 05:06:05 export PATH="/opt/pyenv/shims:${PATH}" 05:06:05 export PYENV_SHELL=bash 05:06:05 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 05:06:05 pyenv() { 05:06:05 local command 05:06:05 command="${1:-}" 05:06:05 if [ "$#" -gt 0 ]; then 05:06:05 shift 05:06:05 fi 05:06:05 05:06:05 case "$command" in 05:06:05 rehash|shell) 05:06:05 eval "$(pyenv "sh-$command" "$@")" 05:06:05 ;; 05:06:05 *) 05:06:05 command pyenv "$command" "$@" 05:06:05 ;; 05:06:05 esac 05:06:05 }' 05:06:05 +++ bash --norc -ec 'IFS=:; paths=($PATH); 05:06:05 for i in ${!paths[@]}; do 05:06:05 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 05:06:05 fi; done; 05:06:05 echo "${paths[*]}"' 05:06:05 ++ 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 05:06:05 ++ 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 05:06:05 ++ 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 05:06:05 ++ export PYENV_SHELL=bash 05:06:05 ++ PYENV_SHELL=bash 05:06:05 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 05:06:05 +++ complete -F _pyenv pyenv 05:06:05 ++ lf-pyver python3 05:06:05 ++ local py_version_xy=python3 05:06:05 ++ local py_version_xyz= 05:06:05 ++ pyenv versions 05:06:05 ++ local command 05:06:05 ++ command=versions 05:06:05 ++ '[' 1 -gt 0 ']' 05:06:05 ++ shift 05:06:05 ++ case "$command" in 05:06:05 ++ command pyenv versions 05:06:05 ++ grep -E '^[0-9.]*[0-9]$' 05:06:05 ++ sed 's/^[ *]* //' 05:06:06 ++ awk '{ print $1 }' 05:06:06 ++ [[ ! -s /tmp/.pyenv_versions ]] 05:06:06 +++ grep '^3' /tmp/.pyenv_versions 05:06:06 +++ sort -V 05:06:06 +++ tail -n 1 05:06:06 ++ py_version_xyz=3.11.10 05:06:06 ++ [[ -z 3.11.10 ]] 05:06:06 ++ echo 3.11.10 05:06:06 ++ return 0 05:06:06 + pyenv local 3.11.10 05:06:06 + local command 05:06:06 + command=local 05:06:06 + '[' 2 -gt 0 ']' 05:06:06 + shift 05:06:06 + case "$command" in 05:06:06 + command pyenv local 3.11.10 05:06:06 + for arg in "$@" 05:06:06 + case $arg in 05:06:06 + pkg_list+='tox ' 05:06:06 + for arg in "$@" 05:06:06 + case $arg in 05:06:06 + pkg_list+='virtualenv ' 05:06:06 + for arg in "$@" 05:06:06 + case $arg in 05:06:06 + pkg_list+='urllib3~=1.26.15 ' 05:06:06 + [[ -f /tmp/.toxenv ]] 05:06:06 + [[ ! -f /tmp/.toxenv ]] 05:06:06 + [[ -n '' ]] 05:06:06 + python3 -m venv /tmp/venv-zzD8 05:06:10 + echo 'lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-zzD8' 05:06:10 lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-zzD8 05:06:10 + echo /tmp/venv-zzD8 05:06:10 + echo 'lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv' 05:06:10 lf-activate-venv(): INFO: Save venv in file: /tmp/.toxenv 05:06:10 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 05:06:10 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 05:06:10 + local 'pip_opts=--upgrade --quiet' 05:06:10 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 05:06:10 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 05:06:10 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 05:06:10 + [[ -n '' ]] 05:06:10 + [[ -n '' ]] 05:06:10 + lf-venv-pip-install /tmp/venv-zzD8/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 05:06:10 + local venv_python=/tmp/venv-zzD8/bin/python3 05:06:10 + shift 05:06:10 + local upstream=https://pypi.org/simple 05:06:10 + /tmp/venv-zzD8/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 05:06:14 + return 0 05:06:14 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 05:06:14 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 05:06:14 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 05:06:14 + lf-venv-pip-install /tmp/venv-zzD8/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 05:06:14 + local venv_python=/tmp/venv-zzD8/bin/python3 05:06:14 + shift 05:06:14 + local upstream=https://pypi.org/simple 05:06:14 + /tmp/venv-zzD8/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 05:06:16 + return 0 05:06:16 + type python3 05:06:16 + true 05:06:16 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-zzD8/bin to PATH' 05:06:16 lf-activate-venv(): INFO: Adding /tmp/venv-zzD8/bin to PATH 05:06:16 + PATH=/tmp/venv-zzD8/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 05:06:16 + return 0 05:06:16 + python3 --version 05:06:16 Python 3.11.10 05:06:16 + python3 -m pip --version 05:06:16 pip 26.2.1 from /tmp/venv-zzD8/lib/python3.11/site-packages/pip (python 3.11) 05:06:16 + python3 -m pip freeze 05:06:16 cachetools==7.2.1 05:06:16 colorama==0.4.6 05:06:16 distlib==0.4.3 05:06:16 filelock==4.0.12 05:06:16 packaging==26.3 05:06:16 platformdirs==4.12.4 05:06:16 pluggy==1.6.0 05:06:16 pyproject-api==1.11.4 05:06:16 python-discovery==1.6.1 05:06:16 tomli_w==1.2.0 05:06:16 tox==4.64.9 05:06:16 typing_extensions==4.16.0 05:06:16 urllib3==1.26.20 05:06:16 virtualenv==21.14.5 05:06:17 [transportpce-tox-verify-transportpce-master] $ /bin/sh -xe /tmp/jenkins2491935423442304693.sh 05:06:17 [EnvInject] - Injecting environment variables from a build step. 05:06:17 [EnvInject] - Injecting as environment variables the properties content 05:06:17 PARALLEL=True 05:06:17 05:06:17 [EnvInject] - Variables injected successfully. 05:06:17 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins12189057565490862796.sh 05:06:17 ---> tox-run.sh 05:06:17 + 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 05:06:17 + ARCHIVE_TOX_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 05:06:17 + ARCHIVE_DOC_DIR=/w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 05:06:17 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox 05:06:17 + cd /w/workspace/transportpce-tox-verify-transportpce-master/. 05:06:17 + source /home/jenkins/lf-env.sh 05:06:17 + lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv urllib3~=1.26.15 05:06:17 ++ mktemp -d /tmp/venv-XXXX 05:06:17 + lf_venv=/tmp/venv-gx6H 05:06:17 + local venv_file=/tmp/.os_lf_venv 05:06:17 + local python=python3 05:06:17 + local options 05:06:17 + local set_path=true 05:06:17 + local install_args= 05:06:17 ++ 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 05:06:17 + options=' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 05:06:17 + eval set -- ' --venv-file '\''/tmp/.toxenv'\'' -- '\''tox'\'' '\''virtualenv'\'' '\''urllib3~=1.26.15'\''' 05:06:17 ++ set -- --venv-file /tmp/.toxenv -- tox virtualenv urllib3~=1.26.15 05:06:17 + true 05:06:17 + case $1 in 05:06:17 + venv_file=/tmp/.toxenv 05:06:17 + shift 2 05:06:17 + true 05:06:17 + case $1 in 05:06:17 + shift 05:06:17 + break 05:06:17 + case $python in 05:06:17 + local pkg_list= 05:06:17 + [[ -d /opt/pyenv ]] 05:06:17 + echo 'Setup pyenv:' 05:06:17 Setup pyenv: 05:06:17 + export PYENV_ROOT=/opt/pyenv 05:06:17 + PYENV_ROOT=/opt/pyenv 05:06:17 + 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 05:06:17 + 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 05:06:17 + pyenv versions 05:06:17 system 05:06:17 3.8.20 05:06:17 3.9.20 05:06:17 3.10.15 05:06:17 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 05:06:17 + command -v pyenv 05:06:17 ++ pyenv init - --no-rehash 05:06:17 + eval 'PATH="$(bash --norc -ec '\''IFS=:; paths=($PATH); 05:06:17 for i in ${!paths[@]}; do 05:06:17 if [[ ${paths[i]} == "'\'''\''/opt/pyenv/shims'\'''\''" ]]; then unset '\''\'\'''\''paths[i]'\''\'\'''\''; 05:06:17 fi; done; 05:06:17 echo "${paths[*]}"'\'')" 05:06:17 export PATH="/opt/pyenv/shims:${PATH}" 05:06:17 export PYENV_SHELL=bash 05:06:17 source '\''/opt/pyenv/libexec/../completions/pyenv.bash'\'' 05:06:17 pyenv() { 05:06:17 local command 05:06:17 command="${1:-}" 05:06:17 if [ "$#" -gt 0 ]; then 05:06:17 shift 05:06:17 fi 05:06:17 05:06:17 case "$command" in 05:06:17 rehash|shell) 05:06:17 eval "$(pyenv "sh-$command" "$@")" 05:06:17 ;; 05:06:17 *) 05:06:17 command pyenv "$command" "$@" 05:06:17 ;; 05:06:17 esac 05:06:17 }' 05:06:17 +++ bash --norc -ec 'IFS=:; paths=($PATH); 05:06:17 for i in ${!paths[@]}; do 05:06:17 if [[ ${paths[i]} == "/opt/pyenv/shims" ]]; then unset '\''paths[i]'\''; 05:06:17 fi; done; 05:06:17 echo "${paths[*]}"' 05:06:17 ++ 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 05:06:17 ++ 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 05:06:17 ++ 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 05:06:17 ++ export PYENV_SHELL=bash 05:06:17 ++ PYENV_SHELL=bash 05:06:17 ++ source /opt/pyenv/libexec/../completions/pyenv.bash 05:06:17 +++ complete -F _pyenv pyenv 05:06:17 ++ lf-pyver python3 05:06:17 ++ local py_version_xy=python3 05:06:17 ++ local py_version_xyz= 05:06:17 ++ pyenv versions 05:06:17 ++ local command 05:06:17 ++ command=versions 05:06:17 ++ '[' 1 -gt 0 ']' 05:06:17 ++ shift 05:06:17 ++ case "$command" in 05:06:17 ++ command pyenv versions 05:06:17 ++ awk '{ print $1 }' 05:06:17 ++ grep -E '^[0-9.]*[0-9]$' 05:06:17 ++ sed 's/^[ *]* //' 05:06:17 ++ [[ ! -s /tmp/.pyenv_versions ]] 05:06:17 +++ grep '^3' /tmp/.pyenv_versions 05:06:17 +++ sort -V 05:06:17 +++ tail -n 1 05:06:17 ++ py_version_xyz=3.11.10 05:06:17 ++ [[ -z 3.11.10 ]] 05:06:17 ++ echo 3.11.10 05:06:17 ++ return 0 05:06:17 + pyenv local 3.11.10 05:06:17 + local command 05:06:17 + command=local 05:06:17 + '[' 2 -gt 0 ']' 05:06:17 + shift 05:06:17 + case "$command" in 05:06:17 + command pyenv local 3.11.10 05:06:17 + for arg in "$@" 05:06:17 + case $arg in 05:06:17 + pkg_list+='tox ' 05:06:17 + for arg in "$@" 05:06:17 + case $arg in 05:06:17 + pkg_list+='virtualenv ' 05:06:17 + for arg in "$@" 05:06:17 + case $arg in 05:06:17 + pkg_list+='urllib3~=1.26.15 ' 05:06:17 + [[ -f /tmp/.toxenv ]] 05:06:17 ++ cat /tmp/.toxenv 05:06:17 + lf_venv=/tmp/venv-zzD8 05:06:17 + echo 'lf-activate-venv(): INFO: Reuse venv:/tmp/venv-zzD8 from' file:/tmp/.toxenv 05:06:17 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-zzD8 from file:/tmp/.toxenv 05:06:17 + echo 'lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv)' 05:06:17 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 05:06:17 + local 'pip_opts=--upgrade --quiet' 05:06:17 + pip_opts='--upgrade --quiet --trusted-host pypi.org' 05:06:17 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org' 05:06:17 + pip_opts='--upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org' 05:06:17 + [[ -n '' ]] 05:06:17 + [[ -n '' ]] 05:06:17 + lf-venv-pip-install /tmp/venv-zzD8/bin/python3 --upgrade --quiet --trusted-host pypi.org --trusted-host files.pythonhosted.org --trusted-host pypi.python.org pip 'setuptools<66' virtualenv 05:06:17 + local venv_python=/tmp/venv-zzD8/bin/python3 05:06:17 + shift 05:06:17 + local upstream=https://pypi.org/simple 05:06:17 + /tmp/venv-zzD8/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 05:06:18 + return 0 05:06:18 + [[ -z tox virtualenv urllib3~=1.26.15 ]] 05:06:18 + echo 'lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 ' 05:06:18 lf-activate-venv(): INFO: Installing additional packages: tox virtualenv urllib3~=1.26.15 05:06:18 + lf-venv-pip-install /tmp/venv-zzD8/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 05:06:18 + local venv_python=/tmp/venv-zzD8/bin/python3 05:06:18 + shift 05:06:18 + local upstream=https://pypi.org/simple 05:06:18 + /tmp/venv-zzD8/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 05:06:19 + return 0 05:06:19 + type python3 05:06:19 + true 05:06:19 + echo 'lf-activate-venv(): INFO: Adding /tmp/venv-zzD8/bin to PATH' 05:06:19 lf-activate-venv(): INFO: Adding /tmp/venv-zzD8/bin to PATH 05:06:19 + PATH=/tmp/venv-zzD8/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 05:06:19 + return 0 05:06:19 + [[ -d /opt/pyenv ]] 05:06:19 + echo '---> Setting up pyenv' 05:06:19 ---> Setting up pyenv 05:06:19 + export PYENV_ROOT=/opt/pyenv 05:06:19 + PYENV_ROOT=/opt/pyenv 05:06:19 + export PATH=/opt/pyenv/bin:/tmp/venv-zzD8/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 05:06:19 + PATH=/opt/pyenv/bin:/tmp/venv-zzD8/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 05:06:19 ++ pwd 05:06:19 + PYTHONPATH=/w/workspace/transportpce-tox-verify-transportpce-master 05:06:19 + export PYTHONPATH 05:06:19 + export TOX_TESTENV_PASSENV=PYTHONPATH 05:06:19 + TOX_TESTENV_PASSENV=PYTHONPATH 05:06:19 + tox --version 05:06:19 4.64.9 from /tmp/venv-zzD8/lib/python3.11/site-packages/tox/__init__.py 05:06:19 + PARALLEL=True 05:06:19 + TOX_OPTIONS_LIST= 05:06:19 + [[ -n '' ]] 05:06:19 + case ${PARALLEL,,} in 05:06:19 + TOX_OPTIONS_LIST=' --parallel auto --parallel-live' 05:06:19 + tox --parallel auto --parallel-live 05:06:19 + tee -a /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tox.log 05:06:21 checkbashisms: freeze> python -m pip freeze --all 05:06:21 docs: install_deps> python -I -m pip install -r docs/requirements.txt 05:06:21 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 05:06:21 docs-linkcheck: install_deps> python -I -m pip install -r docs/requirements.txt 05:06:21 checkbashisms: pip==26.2.1,setuptools==84.0.0 05:06:21 checkbashisms: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 05:06:21 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)' 05:06:21 checkbashisms: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> find . -not -path '*/\.*' -name '*.sh' -exec checkbashisms -f '{}' + 05:06:23 checkbashisms: OK ✔ in 2.98 seconds 05:06:23 pre-commit: install_deps> python -I -m pip install pre-commit 05:06:25 pre-commit: freeze> python -m pip freeze --all 05:06:26 pre-commit: cfgv==3.5.0,distlib==0.4.3,filelock==4.0.12,identify==2.6.20,nodeenv==1.11.0,packaging==26.3,pip==26.2.1,platformdirs==4.12.4,pre_commit==4.6.2,python-discovery==1.6.1,PyYAML==6.0.3,setuptools==84.0.0,virtualenv==21.14.5 05:06:26 pre-commit: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./fixCIcentOS8reposMirrors.sh 05:06:26 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)' 05:06:26 /usr/bin/cpan 05:06:26 pre-commit: commands[2] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run --all-files --show-diff-on-failure 05:06:26 [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. 05:06:26 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. 05:06:27 [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. 05:06:28 buildcontroller: freeze> python -m pip freeze --all 05:06:28 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.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 05:06:28 buildcontroller: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh 05:06:28 + update-java-alternatives -l 05:06:28 java-1.11.0-openjdk-amd64 1111 /usr/lib/jvm/java-1.11.0-openjdk-amd64 05:06:28 java-1.17.0-openjdk-amd64 1711 /usr/lib/jvm/java-1.17.0-openjdk-amd64 05:06:28 java-1.21.0-openjdk-amd64 2111 /usr/lib/jvm/java-1.21.0-openjdk-amd64 05:06:28 + sudo update-java-alternatives -s java-1.21.0-openjdk-amd64 05:06:28 update-alternatives: error: no alternatives for jaotc 05:06:28 update-alternatives: error: no alternatives for rmic 05:06:28 [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. 05:06:28 + java -version 05:06:28 + sed -n ;s/.* version "\(.*\)\.\(.*\)\..*".*$/\1/p; 05:06:28 + JAVA_VER=21.0 05:06:28 21.0 05:06:28 + echo 21.0 05:06:28 + javac -version 05:06:28 + sed -n ;s/javac \(.*\)\.\(.*\)\..*.*$/\1/p; 05:06:29 [INFO] Initializing environment for https://github.com/hhatto/autopep8. 05:06:29 + JAVAC_VER=21.0 05:06:29 + echo 21.0 05:06:29 + [ 21.0 -ge 21 ] 05:06:29 21.0 05:06:29 No java21 or newer available 05:06:29 ./installMavenUbuntu.sh: 14: [: Illegal number: 21.0 05:06:29 + echo No java21 or newer available 05:06:29 + exit 1 05:06:29 buildcontroller: exit 1 (0.60 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_controller.sh pid=2696 05:06:29 buildcontroller: FAIL ✖ in 9.18 seconds 05:06:29 pylint: install_deps> python -I -m pip install 'pylint>=2.6.0' 05:06:29 [INFO] Initializing environment for https://github.com/perltidy/perltidy. 05:06:31 [INFO] Initializing environment for https://github.com/koalaman/shellcheck-precommit. 05:06:31 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier. 05:06:32 [INFO] Initializing environment for https://github.com/pre-commit/mirrors-prettier:prettier@4.0.0-alpha.8. 05:06:32 pylint: freeze> python -m pip freeze --all 05:06:32 [INFO] Initializing environment for https://github.com/adrienverge/yamllint. 05:06:32 pylint: astroid==4.3.3,dill==0.4.1,isort==9.0.2,mccabe==0.7.0,mypy_extensions==1.1.0,pip==26.2.1,platformdirs==4.12.4,pylint==4.1.2,setuptools==84.0.0,tomlkit==0.15.1 05:06:32 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}$' '{}' + 05:06:32 [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. 05:06:32 [INFO] Once installed this environment will be reused. 05:06:32 [INFO] This may take a few minutes... 05:06:36 docs-linkcheck: freeze> python -m pip freeze --all 05:06:36 docs: freeze> python -m pip freeze --all 05:06:36 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.1.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-mermaid==2.1.1,sphinxcontrib-openapi==0.9.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,urllib3==2.8.0 05:06:36 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 05:06:36 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.1.0,sphinxcontrib-jquery==4.1,sphinxcontrib-jsmath==1.0.1,sphinxcontrib-mermaid==2.1.1,sphinxcontrib-openapi==0.9.0,sphinxcontrib-plantuml==0.31,sphinxcontrib-qthelp==2.0.0,sphinxcontrib-serializinghtml==2.0.0,typing_extensions==4.16.0,urllib3==2.8.0 05:06:36 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 05:06:37 [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. 05:06:37 [INFO] Once installed this environment will be reused. 05:06:37 [INFO] This may take a few minutes... 05:06:39 docs: OK ✔ in 19.01 seconds 05:06:39 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 05:06:41 docs-linkcheck: OK ✔ in 21.39 seconds 05:06:41 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 05:06:42 [INFO] Installing environment for https://github.com/hhatto/autopep8. 05:06:42 [INFO] Once installed this environment will be reused. 05:06:42 [INFO] This may take a few minutes... 05:06:45 build_karaf_tests221: freeze> python -m pip freeze --all 05:06:45 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.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 05:06:45 build_karaf_tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 05:06:45 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf221 05:06:45 ./build_karaf_for_tests.sh: 22: mvn: not found 05:06:45 build karaf in karaf221 with ./karaf221.env 05:06:45 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 05:06:45 build_karaf_tests221: exit 127 (0.00 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3332 05:06:45 build_karaf_tests221: FAIL ✖ in 6.61 seconds 05:06:45 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 05:06:46 [INFO] Installing environment for https://github.com/perltidy/perltidy. 05:06:46 [INFO] Once installed this environment will be reused. 05:06:46 [INFO] This may take a few minutes... 05:06:47 build_karaf_tests71: freeze> python -m pip freeze --all 05:06:47 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.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 05:06:47 build_karaf_tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 05:06:47 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karaf71 05:06:47 ./build_karaf_for_tests.sh: 22: mvn: not found 05:06:47 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 05:06:47 build karaf in karaf71 with ./karaf71.env 05:06:47 build_karaf_tests71: exit 127 (0.01 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3363 05:06:48 build_karaf_tests71: FAIL ✖ in 6.62 seconds 05:06:48 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 05:06:48 ************* Module 2.2.1.test12_end2end 05:06:48 transportpce_tests/2.2.1/test12_end2end.py:435:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 05:06:48 ************* Module common.test_utils 05:06:48 transportpce_tests/common/test_utils.py:532:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 05:06:48 transportpce_tests/common/test_utils.py:555:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 05:06:48 transportpce_tests/common/test_utils.py:581:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 05:06:48 transportpce_tests/common/test_utils.py:617:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 05:06:48 transportpce_tests/common/test_utils.py:635:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 05:06:48 transportpce_tests/common/test_utils.py:666:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 05:06:48 transportpce_tests/common/test_utils.py:687:0: C0325: Unnecessary parens after 'in' keyword (superfluous-parens) 05:06:48 05:06:48 ----------------------------------- 05:06:48 Your code has been rated at 9.99/10 05:06:48 05:06:50 pylint: exit 1 (17.73 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=3164 05:06:50 pylint: FAIL ✖ in 21.33 seconds 05:06:50 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 05:06:51 build_karaf_tests200: freeze> python -m pip freeze --all 05:06:51 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.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 05:06:51 build_karaf_tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh 05:06:51 build karaf in karafoc200 with ./karafoc200.env 05:06:51 ./build_karaf_for_tests.sh: 21: cd: can't cd to ../karafoc200 05:06:52 ./build_karaf_for_tests.sh: 22: mvn: not found 05:06:52 ./build_karaf_for_tests.sh: 23: ./target/assembly/ressources/post_install_for_tests.sh: not found 05:06:52 build_karaf_tests200: exit 127 (0.01 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./build_karaf_for_tests.sh pid=3398 05:06:52 build_karaf_tests200: FAIL ✖ in 6.49 seconds 05:06:52 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 05:06:54 buildlighty: freeze> python -m pip freeze --all 05:06:54 [INFO] Installing environment for https://github.com/pre-commit/mirrors-prettier. 05:06:54 [INFO] Once installed this environment will be reused. 05:06:54 [INFO] This may take a few minutes... 05:06:54 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.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 05:06:54 buildlighty: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh 05:06:54 ./build.sh: 7: mvn: not found 05:06:54 unzip: cannot find or open target/tpce-bin.zip, target/tpce-bin.zip.zip or target/tpce-bin.zip.ZIP. 05:06:54 buildlighty: exit 9 (0.01 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/lighty> ./build.sh pid=3516 05:06:57 buildlighty: FAIL ✖ in 6.62 seconds 05:06:57 sims: freeze> python -m pip freeze --all 05:06:57 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.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 05:06:57 sims: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./install_lightynode.sh 05:06:57 Using lighynode version 22.1.0.7 05:06:57 Installing lightynode device to ./lightynode/lightynode-openroadm-device directory 05:06:58 [INFO] Installing environment for https://github.com/adrienverge/yamllint. 05:06:58 [INFO] Once installed this environment will be reused. 05:06:58 [INFO] This may take a few minutes... 05:07:02 trim trailing whitespace.................................................Passed 05:07:02 fix end of files.........................................................Passed 05:07:02 check for added large files..............................................Passed 05:07:02 check for merge conflicts................................................Passed 05:07:03 check for case conflicts.................................................Passed 05:07:03 check json...............................................................Passed 05:07:03 mixed line ending........................................................Passed 05:07:03 Tabs remover.............................................................Passed 05:07:03 autopep8.................................................................Passed 05:07:05 perltidy.................................................................Passed 05:07:06 ShellCheck v0.11.0.......................................................Passed 05:07:10 prettier.................................................................Passed 05:07:12 yamllint.................................................................Passed 05:07:12 sims: OK ✔ in 9.67 seconds 05:07:12 pre-commit: commands[3] /w/workspace/transportpce-tox-verify-transportpce-master/tests> pre-commit run gitlint-ci --hook-stage manual 05:07:12 [INFO] Installing environment for https://github.com/jorisroovers/gitlint. 05:07:12 [INFO] Once installed this environment will be reused. 05:07:12 [INFO] This may take a few minutes... 05:07:21 gitlint..................................................................Passed 05:07:37 pre-commit: OK ✔ in 58.23 seconds 05:07:37 testsPCE: freeze> python -m pip freeze --all 05:07:38 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.0,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 05:07:38 testsPCE: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce 05:07:38 pytest -q transportpce_tests/pce/test01_pce.py 05:09:38 EEEEEEEEEEEEEEEEEEEE [100%] 05:09:42 ==================================== ERRORS ==================================== 05:09:42 _______ ERROR at setup of TestTransportPCEPce.test_01_load_port_mapping ________ 05:09:42 05:09:42 cls = 05:09:42 05:09:42 @classmethod 05:09:42 def setUpClass(cls): 05:09:42 # pylint: disable=bare-except 05:09:42 sample_files_parsed = False 05:09:42 time.sleep(20) 05:09:42 try: 05:09:42 TOPO_BI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 05:09:42 "..", "..", "sample_configs", "honeynode-topo.json") 05:09:42 with open(TOPO_BI_DIR_FILE, 'r', encoding='utf-8') as topo_bi_dir: 05:09:42 cls.simple_topo_bi_dir_data = topo_bi_dir.read() 05:09:42 05:09:42 TOPO_UNI_DIR_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 05:09:42 "..", "..", "sample_configs", "NW-simple-topology.json") 05:09:42 05:09:42 with open(TOPO_UNI_DIR_FILE, 'r', encoding='utf-8') as topo_uni_dir: 05:09:42 cls.simple_topo_uni_dir_data = topo_uni_dir.read() 05:09:42 05:09:42 TOPO_UNI_DIR_COMPLEX_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 05:09:42 "..", "..", "sample_configs", "NW-for-test-5-4.json") 05:09:42 with open(TOPO_UNI_DIR_COMPLEX_FILE, 'r', encoding='utf-8') as topo_uni_dir_complex: 05:09:42 cls.complex_topo_uni_dir_data = topo_uni_dir_complex.read() 05:09:42 PORT_MAPPING_FILE = os.path.join(os.path.dirname(os.path.realpath(__file__)), 05:09:42 "..", "..", "sample_configs", "pce_portmapping_221.json") 05:09:42 with open(PORT_MAPPING_FILE, 'r', encoding='utf-8') as port_mapping: 05:09:42 cls.port_mapping_data = port_mapping.read() 05:09:42 sample_files_parsed = True 05:09:42 except PermissionError as err: 05:09:42 print("Permission Error when trying to read sample files\n", err) 05:09:42 sys.exit(2) 05:09:42 except FileNotFoundError as err: 05:09:42 print("File Not found Error when trying to read sample files\n", err) 05:09:42 sys.exit(2) 05:09:42 except: 05:09:42 print("Unexpected error when trying to read sample files\n", sys.exc_info()[0]) 05:09:42 sys.exit(2) 05:09:42 finally: 05:09:42 if sample_files_parsed: 05:09:42 print("sample files content loaded") 05:09:42 05:09:42 > cls.processes = test_utils.start_tpce() 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 05:09:42 transportpce_tests/pce/test01_pce.py:93: 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 05:09:42 def start_tpce(): 05:09:42 if 'NO_ODL_STARTUP' in os.environ: 05:09:42 print('No OpenDaylight instance to start!') 05:09:42 return [] 05:09:42 print('starting OpenDaylight...') 05:09:42 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 05:09:42 process = start_lighty() 05:09:42 else: 05:09:42 process = start_karaf() 05:09:42 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 05:09:42 print('OpenDaylight started !') 05:09:42 else: 05:09:42 print('OpenDaylight failed to start !') 05:09:42 shutdown_process(process) 05:09:42 for pid in process_list: 05:09:42 shutdown_process(pid) 05:09:42 > sys.exit(1) 05:09:42 E SystemExit: 1 05:09:42 05:09:42 transportpce_tests/common/test_utils.py:234: SystemExit 05:09:42 ---------------------------- Captured stdout setup ----------------------------- 05:09:42 sample files content loaded 05:09:42 starting OpenDaylight... 05:09:42 starting KARAF (karaf) TransportPCE build... 05:09:42 Pattern not found after 100 seconds! OpenDaylight failed to start ! 05:09:42 ____ ERROR at setup of TestTransportPCEPce.test_02_load_simple_topology_bi _____ 05:09:42 05:09:42 cls = 05:09:42 func = . at 0x7f359068f380> 05:09:42 when = 'setup' 05:09:42 reraise = (, ) 05:09:42 05:09:42 @classmethod 05:09:42 def from_call( 05:09:42 cls, 05:09:42 func: Callable[[], TResult], 05:09:42 when: Literal["collect", "setup", "call", "teardown"], 05:09:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:09:42 ) -> CallInfo[TResult]: 05:09:42 """Call func, wrapping the result in a CallInfo. 05:09:42 05:09:42 :param func: 05:09:42 The function to call. Called without arguments. 05:09:42 :type func: Callable[[], _pytest.runner.TResult] 05:09:42 :param when: 05:09:42 The phase in which the function is called. 05:09:42 :param reraise: 05:09:42 Exception or exceptions that shall propagate if raised by the 05:09:42 function, instead of being wrapped in the CallInfo. 05:09:42 """ 05:09:42 excinfo = None 05:09:42 instant = timing.Instant() 05:09:42 try: 05:09:42 > result: TResult | None = func() 05:09:42 ^^^^^^ 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:09:42 lambda: runtest_hook(item=item, **kwds), 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:09:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:09:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:09:42 yield 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:09:42 return (yield) 05:09:42 ^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:09:42 item.session._setupstate.setup(item) 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:09:42 col.setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:09:42 super().setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:09:42 self._request._fillfixtures() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:09:42 item.funcargs[argname] = self.getfixturevalue(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:09:42 fixturedef = self._get_active_fixturedef(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:09:42 fixturedef.execute(request=subrequest) 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 05:09:42 self = 05:09:42 request = > 05:09:42 05:09:42 def execute(self, request: SubRequest) -> FixtureValue: 05:09:42 """Return the value of this fixture, executing it if not cached.""" 05:09:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:09:42 # This needs to be done before checking if we have a cached value, since 05:09:42 # if a dependent fixture has their cache invalidated, e.g. due to 05:09:42 # parametrization, they finalize themselves and fixtures depending on it 05:09:42 # (which will likely include this fixture) setting `self.cached_result = None`. 05:09:42 # See #4871 05:09:42 requested_fixtures_that_should_finalize_us = [] 05:09:42 for argname in self.argnames: 05:09:42 fixturedef = request._get_active_fixturedef(argname) 05:09:42 # Saves requested fixtures in a list so we later can add our finalizer 05:09:42 # to them, ensuring that if a requested fixture gets torn down we get torn 05:09:42 # down first. This is generally handled by SetupState, but still currently 05:09:42 # needed when this fixture is not parametrized but depends on a parametrized 05:09:42 # fixture. 05:09:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:09:42 05:09:42 # Check for (and return) cached value/exception. 05:09:42 if self.cached_result is not None: 05:09:42 request_cache_key = self.cache_key(request) 05:09:42 cache_key = self.cached_result[1] 05:09:42 try: 05:09:42 # Attempt to make a normal == check: this might fail for objects 05:09:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:09:42 cache_hit = bool(request_cache_key == cache_key) 05:09:42 except (ValueError, RuntimeError): 05:09:42 # If the comparison raises, use 'is' as fallback. 05:09:42 cache_hit = request_cache_key is cache_key 05:09:42 05:09:42 if cache_hit: 05:09:42 if self.cached_result[2] is not None: 05:09:42 exc, exc_tb = self.cached_result[2] 05:09:42 raise exc.with_traceback(exc_tb) 05:09:42 else: 05:09:42 return self.cached_result[0] 05:09:42 # We have a previous but differently parametrized fixture instance 05:09:42 # so we need to tear it down before creating a new one. 05:09:42 self.finish(request) 05:09:42 assert self.cached_result is None 05:09:42 05:09:42 # Add finalizer to requested fixtures we saved previously. 05:09:42 # We make sure to do this after checking for cached value to avoid 05:09:42 # adding our finalizer multiple times. (#12135) 05:09:42 finalizer = functools.partial(self.finish, request=request) 05:09:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:09:42 parent_fixture.addfinalizer(finalizer) 05:09:42 05:09:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:09:42 # which is executed last. 05:09:42 > assert not self._finalizers 05:09:42 ^^^^^^^^^^^^^^^^^^^^ 05:09:42 E AssertionError 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:09:42 ___________ ERROR at setup of TestTransportPCEPce.test_03_get_nodeId ___________ 05:09:42 05:09:42 cls = 05:09:42 func = . at 0x7f35906a3c40> 05:09:42 when = 'setup' 05:09:42 reraise = (, ) 05:09:42 05:09:42 @classmethod 05:09:42 def from_call( 05:09:42 cls, 05:09:42 func: Callable[[], TResult], 05:09:42 when: Literal["collect", "setup", "call", "teardown"], 05:09:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:09:42 ) -> CallInfo[TResult]: 05:09:42 """Call func, wrapping the result in a CallInfo. 05:09:42 05:09:42 :param func: 05:09:42 The function to call. Called without arguments. 05:09:42 :type func: Callable[[], _pytest.runner.TResult] 05:09:42 :param when: 05:09:42 The phase in which the function is called. 05:09:42 :param reraise: 05:09:42 Exception or exceptions that shall propagate if raised by the 05:09:42 function, instead of being wrapped in the CallInfo. 05:09:42 """ 05:09:42 excinfo = None 05:09:42 instant = timing.Instant() 05:09:42 try: 05:09:42 > result: TResult | None = func() 05:09:42 ^^^^^^ 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:09:42 lambda: runtest_hook(item=item, **kwds), 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:09:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:09:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:09:42 yield 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:09:42 return (yield) 05:09:42 ^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:09:42 item.session._setupstate.setup(item) 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:09:42 col.setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:09:42 super().setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:09:42 self._request._fillfixtures() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:09:42 item.funcargs[argname] = self.getfixturevalue(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:09:42 fixturedef = self._get_active_fixturedef(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:09:42 fixturedef.execute(request=subrequest) 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 05:09:42 self = 05:09:42 request = > 05:09:42 05:09:42 def execute(self, request: SubRequest) -> FixtureValue: 05:09:42 """Return the value of this fixture, executing it if not cached.""" 05:09:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:09:42 # This needs to be done before checking if we have a cached value, since 05:09:42 # if a dependent fixture has their cache invalidated, e.g. due to 05:09:42 # parametrization, they finalize themselves and fixtures depending on it 05:09:42 # (which will likely include this fixture) setting `self.cached_result = None`. 05:09:42 # See #4871 05:09:42 requested_fixtures_that_should_finalize_us = [] 05:09:42 for argname in self.argnames: 05:09:42 fixturedef = request._get_active_fixturedef(argname) 05:09:42 # Saves requested fixtures in a list so we later can add our finalizer 05:09:42 # to them, ensuring that if a requested fixture gets torn down we get torn 05:09:42 # down first. This is generally handled by SetupState, but still currently 05:09:42 # needed when this fixture is not parametrized but depends on a parametrized 05:09:42 # fixture. 05:09:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:09:42 05:09:42 # Check for (and return) cached value/exception. 05:09:42 if self.cached_result is not None: 05:09:42 request_cache_key = self.cache_key(request) 05:09:42 cache_key = self.cached_result[1] 05:09:42 try: 05:09:42 # Attempt to make a normal == check: this might fail for objects 05:09:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:09:42 cache_hit = bool(request_cache_key == cache_key) 05:09:42 except (ValueError, RuntimeError): 05:09:42 # If the comparison raises, use 'is' as fallback. 05:09:42 cache_hit = request_cache_key is cache_key 05:09:42 05:09:42 if cache_hit: 05:09:42 if self.cached_result[2] is not None: 05:09:42 exc, exc_tb = self.cached_result[2] 05:09:42 raise exc.with_traceback(exc_tb) 05:09:42 else: 05:09:42 return self.cached_result[0] 05:09:42 # We have a previous but differently parametrized fixture instance 05:09:42 # so we need to tear it down before creating a new one. 05:09:42 self.finish(request) 05:09:42 assert self.cached_result is None 05:09:42 05:09:42 # Add finalizer to requested fixtures we saved previously. 05:09:42 # We make sure to do this after checking for cached value to avoid 05:09:42 # adding our finalizer multiple times. (#12135) 05:09:42 finalizer = functools.partial(self.finish, request=request) 05:09:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:09:42 parent_fixture.addfinalizer(finalizer) 05:09:42 05:09:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:09:42 # which is executed last. 05:09:42 > assert not self._finalizers 05:09:42 ^^^^^^^^^^^^^^^^^^^^ 05:09:42 E AssertionError 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:09:42 ___________ ERROR at setup of TestTransportPCEPce.test_04_get_linkId ___________ 05:09:42 05:09:42 cls = 05:09:42 func = . at 0x7f35906a3420> 05:09:42 when = 'setup' 05:09:42 reraise = (, ) 05:09:42 05:09:42 @classmethod 05:09:42 def from_call( 05:09:42 cls, 05:09:42 func: Callable[[], TResult], 05:09:42 when: Literal["collect", "setup", "call", "teardown"], 05:09:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:09:42 ) -> CallInfo[TResult]: 05:09:42 """Call func, wrapping the result in a CallInfo. 05:09:42 05:09:42 :param func: 05:09:42 The function to call. Called without arguments. 05:09:42 :type func: Callable[[], _pytest.runner.TResult] 05:09:42 :param when: 05:09:42 The phase in which the function is called. 05:09:42 :param reraise: 05:09:42 Exception or exceptions that shall propagate if raised by the 05:09:42 function, instead of being wrapped in the CallInfo. 05:09:42 """ 05:09:42 excinfo = None 05:09:42 instant = timing.Instant() 05:09:42 try: 05:09:42 > result: TResult | None = func() 05:09:42 ^^^^^^ 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:09:42 lambda: runtest_hook(item=item, **kwds), 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:09:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:09:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:09:42 yield 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:09:42 return (yield) 05:09:42 ^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:09:42 item.session._setupstate.setup(item) 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:09:42 col.setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:09:42 super().setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:09:42 self._request._fillfixtures() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:09:42 item.funcargs[argname] = self.getfixturevalue(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:09:42 fixturedef = self._get_active_fixturedef(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:09:42 fixturedef.execute(request=subrequest) 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 05:09:42 self = 05:09:42 request = > 05:09:42 05:09:42 def execute(self, request: SubRequest) -> FixtureValue: 05:09:42 """Return the value of this fixture, executing it if not cached.""" 05:09:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:09:42 # This needs to be done before checking if we have a cached value, since 05:09:42 # if a dependent fixture has their cache invalidated, e.g. due to 05:09:42 # parametrization, they finalize themselves and fixtures depending on it 05:09:42 # (which will likely include this fixture) setting `self.cached_result = None`. 05:09:42 # See #4871 05:09:42 requested_fixtures_that_should_finalize_us = [] 05:09:42 for argname in self.argnames: 05:09:42 fixturedef = request._get_active_fixturedef(argname) 05:09:42 # Saves requested fixtures in a list so we later can add our finalizer 05:09:42 # to them, ensuring that if a requested fixture gets torn down we get torn 05:09:42 # down first. This is generally handled by SetupState, but still currently 05:09:42 # needed when this fixture is not parametrized but depends on a parametrized 05:09:42 # fixture. 05:09:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:09:42 05:09:42 # Check for (and return) cached value/exception. 05:09:42 if self.cached_result is not None: 05:09:42 request_cache_key = self.cache_key(request) 05:09:42 cache_key = self.cached_result[1] 05:09:42 try: 05:09:42 # Attempt to make a normal == check: this might fail for objects 05:09:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:09:42 cache_hit = bool(request_cache_key == cache_key) 05:09:42 except (ValueError, RuntimeError): 05:09:42 # If the comparison raises, use 'is' as fallback. 05:09:42 cache_hit = request_cache_key is cache_key 05:09:42 05:09:42 if cache_hit: 05:09:42 if self.cached_result[2] is not None: 05:09:42 exc, exc_tb = self.cached_result[2] 05:09:42 raise exc.with_traceback(exc_tb) 05:09:42 else: 05:09:42 return self.cached_result[0] 05:09:42 # We have a previous but differently parametrized fixture instance 05:09:42 # so we need to tear it down before creating a new one. 05:09:42 self.finish(request) 05:09:42 assert self.cached_result is None 05:09:42 05:09:42 # Add finalizer to requested fixtures we saved previously. 05:09:42 # We make sure to do this after checking for cached value to avoid 05:09:42 # adding our finalizer multiple times. (#12135) 05:09:42 finalizer = functools.partial(self.finish, request=request) 05:09:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:09:42 parent_fixture.addfinalizer(finalizer) 05:09:42 05:09:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:09:42 # which is executed last. 05:09:42 > assert not self._finalizers 05:09:42 ^^^^^^^^^^^^^^^^^^^^ 05:09:42 E AssertionError 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:09:42 ____ ERROR at setup of TestTransportPCEPce.test_05_path_computation_xpdr_bi ____ 05:09:42 05:09:42 cls = 05:09:42 func = . at 0x7f359068f380> 05:09:42 when = 'setup' 05:09:42 reraise = (, ) 05:09:42 05:09:42 @classmethod 05:09:42 def from_call( 05:09:42 cls, 05:09:42 func: Callable[[], TResult], 05:09:42 when: Literal["collect", "setup", "call", "teardown"], 05:09:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:09:42 ) -> CallInfo[TResult]: 05:09:42 """Call func, wrapping the result in a CallInfo. 05:09:42 05:09:42 :param func: 05:09:42 The function to call. Called without arguments. 05:09:42 :type func: Callable[[], _pytest.runner.TResult] 05:09:42 :param when: 05:09:42 The phase in which the function is called. 05:09:42 :param reraise: 05:09:42 Exception or exceptions that shall propagate if raised by the 05:09:42 function, instead of being wrapped in the CallInfo. 05:09:42 """ 05:09:42 excinfo = None 05:09:42 instant = timing.Instant() 05:09:42 try: 05:09:42 > result: TResult | None = func() 05:09:42 ^^^^^^ 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:09:42 lambda: runtest_hook(item=item, **kwds), 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:09:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:09:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:09:42 yield 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:09:42 return (yield) 05:09:42 ^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:09:42 item.session._setupstate.setup(item) 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:09:42 col.setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:09:42 super().setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:09:42 self._request._fillfixtures() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:09:42 item.funcargs[argname] = self.getfixturevalue(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:09:42 fixturedef = self._get_active_fixturedef(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:09:42 fixturedef.execute(request=subrequest) 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 05:09:42 self = 05:09:42 request = > 05:09:42 05:09:42 def execute(self, request: SubRequest) -> FixtureValue: 05:09:42 """Return the value of this fixture, executing it if not cached.""" 05:09:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:09:42 # This needs to be done before checking if we have a cached value, since 05:09:42 # if a dependent fixture has their cache invalidated, e.g. due to 05:09:42 # parametrization, they finalize themselves and fixtures depending on it 05:09:42 # (which will likely include this fixture) setting `self.cached_result = None`. 05:09:42 # See #4871 05:09:42 requested_fixtures_that_should_finalize_us = [] 05:09:42 for argname in self.argnames: 05:09:42 fixturedef = request._get_active_fixturedef(argname) 05:09:42 # Saves requested fixtures in a list so we later can add our finalizer 05:09:42 # to them, ensuring that if a requested fixture gets torn down we get torn 05:09:42 # down first. This is generally handled by SetupState, but still currently 05:09:42 # needed when this fixture is not parametrized but depends on a parametrized 05:09:42 # fixture. 05:09:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:09:42 05:09:42 # Check for (and return) cached value/exception. 05:09:42 if self.cached_result is not None: 05:09:42 request_cache_key = self.cache_key(request) 05:09:42 cache_key = self.cached_result[1] 05:09:42 try: 05:09:42 # Attempt to make a normal == check: this might fail for objects 05:09:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:09:42 cache_hit = bool(request_cache_key == cache_key) 05:09:42 except (ValueError, RuntimeError): 05:09:42 # If the comparison raises, use 'is' as fallback. 05:09:42 cache_hit = request_cache_key is cache_key 05:09:42 05:09:42 if cache_hit: 05:09:42 if self.cached_result[2] is not None: 05:09:42 exc, exc_tb = self.cached_result[2] 05:09:42 raise exc.with_traceback(exc_tb) 05:09:42 else: 05:09:42 return self.cached_result[0] 05:09:42 # We have a previous but differently parametrized fixture instance 05:09:42 # so we need to tear it down before creating a new one. 05:09:42 self.finish(request) 05:09:42 assert self.cached_result is None 05:09:42 05:09:42 # Add finalizer to requested fixtures we saved previously. 05:09:42 # We make sure to do this after checking for cached value to avoid 05:09:42 # adding our finalizer multiple times. (#12135) 05:09:42 finalizer = functools.partial(self.finish, request=request) 05:09:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:09:42 parent_fixture.addfinalizer(finalizer) 05:09:42 05:09:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:09:42 # which is executed last. 05:09:42 > assert not self._finalizers 05:09:42 ^^^^^^^^^^^^^^^^^^^^ 05:09:42 E AssertionError 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:09:42 ____ ERROR at setup of TestTransportPCEPce.test_06_path_computation_rdm_bi _____ 05:09:42 05:09:42 cls = 05:09:42 func = . at 0x7f35906a31a0> 05:09:42 when = 'setup' 05:09:42 reraise = (, ) 05:09:42 05:09:42 @classmethod 05:09:42 def from_call( 05:09:42 cls, 05:09:42 func: Callable[[], TResult], 05:09:42 when: Literal["collect", "setup", "call", "teardown"], 05:09:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:09:42 ) -> CallInfo[TResult]: 05:09:42 """Call func, wrapping the result in a CallInfo. 05:09:42 05:09:42 :param func: 05:09:42 The function to call. Called without arguments. 05:09:42 :type func: Callable[[], _pytest.runner.TResult] 05:09:42 :param when: 05:09:42 The phase in which the function is called. 05:09:42 :param reraise: 05:09:42 Exception or exceptions that shall propagate if raised by the 05:09:42 function, instead of being wrapped in the CallInfo. 05:09:42 """ 05:09:42 excinfo = None 05:09:42 instant = timing.Instant() 05:09:42 try: 05:09:42 > result: TResult | None = func() 05:09:42 ^^^^^^ 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:09:42 lambda: runtest_hook(item=item, **kwds), 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:09:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:09:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:09:42 yield 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:09:42 return (yield) 05:09:42 ^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:09:42 item.session._setupstate.setup(item) 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:09:42 col.setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:09:42 super().setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:09:42 self._request._fillfixtures() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:09:42 item.funcargs[argname] = self.getfixturevalue(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:09:42 fixturedef = self._get_active_fixturedef(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:09:42 fixturedef.execute(request=subrequest) 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 05:09:42 self = 05:09:42 request = > 05:09:42 05:09:42 def execute(self, request: SubRequest) -> FixtureValue: 05:09:42 """Return the value of this fixture, executing it if not cached.""" 05:09:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:09:42 # This needs to be done before checking if we have a cached value, since 05:09:42 # if a dependent fixture has their cache invalidated, e.g. due to 05:09:42 # parametrization, they finalize themselves and fixtures depending on it 05:09:42 # (which will likely include this fixture) setting `self.cached_result = None`. 05:09:42 # See #4871 05:09:42 requested_fixtures_that_should_finalize_us = [] 05:09:42 for argname in self.argnames: 05:09:42 fixturedef = request._get_active_fixturedef(argname) 05:09:42 # Saves requested fixtures in a list so we later can add our finalizer 05:09:42 # to them, ensuring that if a requested fixture gets torn down we get torn 05:09:42 # down first. This is generally handled by SetupState, but still currently 05:09:42 # needed when this fixture is not parametrized but depends on a parametrized 05:09:42 # fixture. 05:09:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:09:42 05:09:42 # Check for (and return) cached value/exception. 05:09:42 if self.cached_result is not None: 05:09:42 request_cache_key = self.cache_key(request) 05:09:42 cache_key = self.cached_result[1] 05:09:42 try: 05:09:42 # Attempt to make a normal == check: this might fail for objects 05:09:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:09:42 cache_hit = bool(request_cache_key == cache_key) 05:09:42 except (ValueError, RuntimeError): 05:09:42 # If the comparison raises, use 'is' as fallback. 05:09:42 cache_hit = request_cache_key is cache_key 05:09:42 05:09:42 if cache_hit: 05:09:42 if self.cached_result[2] is not None: 05:09:42 exc, exc_tb = self.cached_result[2] 05:09:42 raise exc.with_traceback(exc_tb) 05:09:42 else: 05:09:42 return self.cached_result[0] 05:09:42 # We have a previous but differently parametrized fixture instance 05:09:42 # so we need to tear it down before creating a new one. 05:09:42 self.finish(request) 05:09:42 assert self.cached_result is None 05:09:42 05:09:42 # Add finalizer to requested fixtures we saved previously. 05:09:42 # We make sure to do this after checking for cached value to avoid 05:09:42 # adding our finalizer multiple times. (#12135) 05:09:42 finalizer = functools.partial(self.finish, request=request) 05:09:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:09:42 parent_fixture.addfinalizer(finalizer) 05:09:42 05:09:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:09:42 # which is executed last. 05:09:42 > assert not self._finalizers 05:09:42 ^^^^^^^^^^^^^^^^^^^^ 05:09:42 E AssertionError 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:09:42 ____ ERROR at setup of TestTransportPCEPce.test_07_load_simple_topology_uni ____ 05:09:42 05:09:42 cls = 05:09:42 func = . at 0x7f35906a36a0> 05:09:42 when = 'setup' 05:09:42 reraise = (, ) 05:09:42 05:09:42 @classmethod 05:09:42 def from_call( 05:09:42 cls, 05:09:42 func: Callable[[], TResult], 05:09:42 when: Literal["collect", "setup", "call", "teardown"], 05:09:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:09:42 ) -> CallInfo[TResult]: 05:09:42 """Call func, wrapping the result in a CallInfo. 05:09:42 05:09:42 :param func: 05:09:42 The function to call. Called without arguments. 05:09:42 :type func: Callable[[], _pytest.runner.TResult] 05:09:42 :param when: 05:09:42 The phase in which the function is called. 05:09:42 :param reraise: 05:09:42 Exception or exceptions that shall propagate if raised by the 05:09:42 function, instead of being wrapped in the CallInfo. 05:09:42 """ 05:09:42 excinfo = None 05:09:42 instant = timing.Instant() 05:09:42 try: 05:09:42 > result: TResult | None = func() 05:09:42 ^^^^^^ 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:09:42 lambda: runtest_hook(item=item, **kwds), 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:09:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:09:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:09:42 yield 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:09:42 return (yield) 05:09:42 ^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:09:42 item.session._setupstate.setup(item) 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:09:42 col.setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:09:42 super().setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:09:42 self._request._fillfixtures() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:09:42 item.funcargs[argname] = self.getfixturevalue(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:09:42 fixturedef = self._get_active_fixturedef(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:09:42 fixturedef.execute(request=subrequest) 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 05:09:42 self = 05:09:42 request = > 05:09:42 05:09:42 def execute(self, request: SubRequest) -> FixtureValue: 05:09:42 """Return the value of this fixture, executing it if not cached.""" 05:09:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:09:42 # This needs to be done before checking if we have a cached value, since 05:09:42 # if a dependent fixture has their cache invalidated, e.g. due to 05:09:42 # parametrization, they finalize themselves and fixtures depending on it 05:09:42 # (which will likely include this fixture) setting `self.cached_result = None`. 05:09:42 # See #4871 05:09:42 requested_fixtures_that_should_finalize_us = [] 05:09:42 for argname in self.argnames: 05:09:42 fixturedef = request._get_active_fixturedef(argname) 05:09:42 # Saves requested fixtures in a list so we later can add our finalizer 05:09:42 # to them, ensuring that if a requested fixture gets torn down we get torn 05:09:42 # down first. This is generally handled by SetupState, but still currently 05:09:42 # needed when this fixture is not parametrized but depends on a parametrized 05:09:42 # fixture. 05:09:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:09:42 05:09:42 # Check for (and return) cached value/exception. 05:09:42 if self.cached_result is not None: 05:09:42 request_cache_key = self.cache_key(request) 05:09:42 cache_key = self.cached_result[1] 05:09:42 try: 05:09:42 # Attempt to make a normal == check: this might fail for objects 05:09:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:09:42 cache_hit = bool(request_cache_key == cache_key) 05:09:42 except (ValueError, RuntimeError): 05:09:42 # If the comparison raises, use 'is' as fallback. 05:09:42 cache_hit = request_cache_key is cache_key 05:09:42 05:09:42 if cache_hit: 05:09:42 if self.cached_result[2] is not None: 05:09:42 exc, exc_tb = self.cached_result[2] 05:09:42 raise exc.with_traceback(exc_tb) 05:09:42 else: 05:09:42 return self.cached_result[0] 05:09:42 # We have a previous but differently parametrized fixture instance 05:09:42 # so we need to tear it down before creating a new one. 05:09:42 self.finish(request) 05:09:42 assert self.cached_result is None 05:09:42 05:09:42 # Add finalizer to requested fixtures we saved previously. 05:09:42 # We make sure to do this after checking for cached value to avoid 05:09:42 # adding our finalizer multiple times. (#12135) 05:09:42 finalizer = functools.partial(self.finish, request=request) 05:09:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:09:42 parent_fixture.addfinalizer(finalizer) 05:09:42 05:09:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:09:42 # which is executed last. 05:09:42 > assert not self._finalizers 05:09:42 ^^^^^^^^^^^^^^^^^^^^ 05:09:42 E AssertionError 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:09:42 ___________ ERROR at setup of TestTransportPCEPce.test_08_get_nodeId ___________ 05:09:42 05:09:42 cls = 05:09:42 func = . at 0x7f35900fdda0> 05:09:42 when = 'setup' 05:09:42 reraise = (, ) 05:09:42 05:09:42 @classmethod 05:09:42 def from_call( 05:09:42 cls, 05:09:42 func: Callable[[], TResult], 05:09:42 when: Literal["collect", "setup", "call", "teardown"], 05:09:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:09:42 ) -> CallInfo[TResult]: 05:09:42 """Call func, wrapping the result in a CallInfo. 05:09:42 05:09:42 :param func: 05:09:42 The function to call. Called without arguments. 05:09:42 :type func: Callable[[], _pytest.runner.TResult] 05:09:42 :param when: 05:09:42 The phase in which the function is called. 05:09:42 :param reraise: 05:09:42 Exception or exceptions that shall propagate if raised by the 05:09:42 function, instead of being wrapped in the CallInfo. 05:09:42 """ 05:09:42 excinfo = None 05:09:42 instant = timing.Instant() 05:09:42 try: 05:09:42 > result: TResult | None = func() 05:09:42 ^^^^^^ 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:09:42 lambda: runtest_hook(item=item, **kwds), 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:09:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:09:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:09:42 yield 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:09:42 return (yield) 05:09:42 ^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:09:42 item.session._setupstate.setup(item) 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:09:42 col.setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:09:42 super().setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:09:42 self._request._fillfixtures() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:09:42 item.funcargs[argname] = self.getfixturevalue(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:09:42 fixturedef = self._get_active_fixturedef(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:09:42 fixturedef.execute(request=subrequest) 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 05:09:42 self = 05:09:42 request = > 05:09:42 05:09:42 def execute(self, request: SubRequest) -> FixtureValue: 05:09:42 """Return the value of this fixture, executing it if not cached.""" 05:09:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:09:42 # This needs to be done before checking if we have a cached value, since 05:09:42 # if a dependent fixture has their cache invalidated, e.g. due to 05:09:42 # parametrization, they finalize themselves and fixtures depending on it 05:09:42 # (which will likely include this fixture) setting `self.cached_result = None`. 05:09:42 # See #4871 05:09:42 requested_fixtures_that_should_finalize_us = [] 05:09:42 for argname in self.argnames: 05:09:42 fixturedef = request._get_active_fixturedef(argname) 05:09:42 # Saves requested fixtures in a list so we later can add our finalizer 05:09:42 # to them, ensuring that if a requested fixture gets torn down we get torn 05:09:42 # down first. This is generally handled by SetupState, but still currently 05:09:42 # needed when this fixture is not parametrized but depends on a parametrized 05:09:42 # fixture. 05:09:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:09:42 05:09:42 # Check for (and return) cached value/exception. 05:09:42 if self.cached_result is not None: 05:09:42 request_cache_key = self.cache_key(request) 05:09:42 cache_key = self.cached_result[1] 05:09:42 try: 05:09:42 # Attempt to make a normal == check: this might fail for objects 05:09:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:09:42 cache_hit = bool(request_cache_key == cache_key) 05:09:42 except (ValueError, RuntimeError): 05:09:42 # If the comparison raises, use 'is' as fallback. 05:09:42 cache_hit = request_cache_key is cache_key 05:09:42 05:09:42 if cache_hit: 05:09:42 if self.cached_result[2] is not None: 05:09:42 exc, exc_tb = self.cached_result[2] 05:09:42 raise exc.with_traceback(exc_tb) 05:09:42 else: 05:09:42 return self.cached_result[0] 05:09:42 # We have a previous but differently parametrized fixture instance 05:09:42 # so we need to tear it down before creating a new one. 05:09:42 self.finish(request) 05:09:42 assert self.cached_result is None 05:09:42 05:09:42 # Add finalizer to requested fixtures we saved previously. 05:09:42 # We make sure to do this after checking for cached value to avoid 05:09:42 # adding our finalizer multiple times. (#12135) 05:09:42 finalizer = functools.partial(self.finish, request=request) 05:09:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:09:42 parent_fixture.addfinalizer(finalizer) 05:09:42 05:09:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:09:42 # which is executed last. 05:09:42 > assert not self._finalizers 05:09:42 ^^^^^^^^^^^^^^^^^^^^ 05:09:42 E AssertionError 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:09:42 ___________ ERROR at setup of TestTransportPCEPce.test_09_get_linkId ___________ 05:09:42 05:09:42 cls = 05:09:42 func = . at 0x7f359068fec0> 05:09:42 when = 'setup' 05:09:42 reraise = (, ) 05:09:42 05:09:42 @classmethod 05:09:42 def from_call( 05:09:42 cls, 05:09:42 func: Callable[[], TResult], 05:09:42 when: Literal["collect", "setup", "call", "teardown"], 05:09:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:09:42 ) -> CallInfo[TResult]: 05:09:42 """Call func, wrapping the result in a CallInfo. 05:09:42 05:09:42 :param func: 05:09:42 The function to call. Called without arguments. 05:09:42 :type func: Callable[[], _pytest.runner.TResult] 05:09:42 :param when: 05:09:42 The phase in which the function is called. 05:09:42 :param reraise: 05:09:42 Exception or exceptions that shall propagate if raised by the 05:09:42 function, instead of being wrapped in the CallInfo. 05:09:42 """ 05:09:42 excinfo = None 05:09:42 instant = timing.Instant() 05:09:42 try: 05:09:42 > result: TResult | None = func() 05:09:42 ^^^^^^ 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:09:42 lambda: runtest_hook(item=item, **kwds), 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:09:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:09:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:09:42 yield 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:09:42 return (yield) 05:09:42 ^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:09:42 item.session._setupstate.setup(item) 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:09:42 col.setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:09:42 super().setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:09:42 self._request._fillfixtures() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:09:42 item.funcargs[argname] = self.getfixturevalue(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:09:42 fixturedef = self._get_active_fixturedef(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:09:42 fixturedef.execute(request=subrequest) 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 05:09:42 self = 05:09:42 request = > 05:09:42 05:09:42 def execute(self, request: SubRequest) -> FixtureValue: 05:09:42 """Return the value of this fixture, executing it if not cached.""" 05:09:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:09:42 # This needs to be done before checking if we have a cached value, since 05:09:42 # if a dependent fixture has their cache invalidated, e.g. due to 05:09:42 # parametrization, they finalize themselves and fixtures depending on it 05:09:42 # (which will likely include this fixture) setting `self.cached_result = None`. 05:09:42 # See #4871 05:09:42 requested_fixtures_that_should_finalize_us = [] 05:09:42 for argname in self.argnames: 05:09:42 fixturedef = request._get_active_fixturedef(argname) 05:09:42 # Saves requested fixtures in a list so we later can add our finalizer 05:09:42 # to them, ensuring that if a requested fixture gets torn down we get torn 05:09:42 # down first. This is generally handled by SetupState, but still currently 05:09:42 # needed when this fixture is not parametrized but depends on a parametrized 05:09:42 # fixture. 05:09:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:09:42 05:09:42 # Check for (and return) cached value/exception. 05:09:42 if self.cached_result is not None: 05:09:42 request_cache_key = self.cache_key(request) 05:09:42 cache_key = self.cached_result[1] 05:09:42 try: 05:09:42 # Attempt to make a normal == check: this might fail for objects 05:09:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:09:42 cache_hit = bool(request_cache_key == cache_key) 05:09:42 except (ValueError, RuntimeError): 05:09:42 # If the comparison raises, use 'is' as fallback. 05:09:42 cache_hit = request_cache_key is cache_key 05:09:42 05:09:42 if cache_hit: 05:09:42 if self.cached_result[2] is not None: 05:09:42 exc, exc_tb = self.cached_result[2] 05:09:42 raise exc.with_traceback(exc_tb) 05:09:42 else: 05:09:42 return self.cached_result[0] 05:09:42 # We have a previous but differently parametrized fixture instance 05:09:42 # so we need to tear it down before creating a new one. 05:09:42 self.finish(request) 05:09:42 assert self.cached_result is None 05:09:42 05:09:42 # Add finalizer to requested fixtures we saved previously. 05:09:42 # We make sure to do this after checking for cached value to avoid 05:09:42 # adding our finalizer multiple times. (#12135) 05:09:42 finalizer = functools.partial(self.finish, request=request) 05:09:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:09:42 parent_fixture.addfinalizer(finalizer) 05:09:42 05:09:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:09:42 # which is executed last. 05:09:42 > assert not self._finalizers 05:09:42 ^^^^^^^^^^^^^^^^^^^^ 05:09:42 E AssertionError 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:09:42 ___ ERROR at setup of TestTransportPCEPce.test_10_path_computation_xpdr_uni ____ 05:09:42 05:09:42 cls = 05:09:42 func = . at 0x7f359068f380> 05:09:42 when = 'setup' 05:09:42 reraise = (, ) 05:09:42 05:09:42 @classmethod 05:09:42 def from_call( 05:09:42 cls, 05:09:42 func: Callable[[], TResult], 05:09:42 when: Literal["collect", "setup", "call", "teardown"], 05:09:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:09:42 ) -> CallInfo[TResult]: 05:09:42 """Call func, wrapping the result in a CallInfo. 05:09:42 05:09:42 :param func: 05:09:42 The function to call. Called without arguments. 05:09:42 :type func: Callable[[], _pytest.runner.TResult] 05:09:42 :param when: 05:09:42 The phase in which the function is called. 05:09:42 :param reraise: 05:09:42 Exception or exceptions that shall propagate if raised by the 05:09:42 function, instead of being wrapped in the CallInfo. 05:09:42 """ 05:09:42 excinfo = None 05:09:42 instant = timing.Instant() 05:09:42 try: 05:09:42 > result: TResult | None = func() 05:09:42 ^^^^^^ 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:09:42 lambda: runtest_hook(item=item, **kwds), 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:09:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:09:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:09:42 yield 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:09:42 return (yield) 05:09:42 ^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:09:42 item.session._setupstate.setup(item) 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:09:42 col.setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:09:42 super().setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:09:42 self._request._fillfixtures() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:09:42 item.funcargs[argname] = self.getfixturevalue(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:09:42 fixturedef = self._get_active_fixturedef(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:09:42 fixturedef.execute(request=subrequest) 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 05:09:42 self = 05:09:42 request = > 05:09:42 05:09:42 def execute(self, request: SubRequest) -> FixtureValue: 05:09:42 """Return the value of this fixture, executing it if not cached.""" 05:09:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:09:42 # This needs to be done before checking if we have a cached value, since 05:09:42 # if a dependent fixture has their cache invalidated, e.g. due to 05:09:42 # parametrization, they finalize themselves and fixtures depending on it 05:09:42 # (which will likely include this fixture) setting `self.cached_result = None`. 05:09:42 # See #4871 05:09:42 requested_fixtures_that_should_finalize_us = [] 05:09:42 for argname in self.argnames: 05:09:42 fixturedef = request._get_active_fixturedef(argname) 05:09:42 # Saves requested fixtures in a list so we later can add our finalizer 05:09:42 # to them, ensuring that if a requested fixture gets torn down we get torn 05:09:42 # down first. This is generally handled by SetupState, but still currently 05:09:42 # needed when this fixture is not parametrized but depends on a parametrized 05:09:42 # fixture. 05:09:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:09:42 05:09:42 # Check for (and return) cached value/exception. 05:09:42 if self.cached_result is not None: 05:09:42 request_cache_key = self.cache_key(request) 05:09:42 cache_key = self.cached_result[1] 05:09:42 try: 05:09:42 # Attempt to make a normal == check: this might fail for objects 05:09:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:09:42 cache_hit = bool(request_cache_key == cache_key) 05:09:42 except (ValueError, RuntimeError): 05:09:42 # If the comparison raises, use 'is' as fallback. 05:09:42 cache_hit = request_cache_key is cache_key 05:09:42 05:09:42 if cache_hit: 05:09:42 if self.cached_result[2] is not None: 05:09:42 exc, exc_tb = self.cached_result[2] 05:09:42 raise exc.with_traceback(exc_tb) 05:09:42 else: 05:09:42 return self.cached_result[0] 05:09:42 # We have a previous but differently parametrized fixture instance 05:09:42 # so we need to tear it down before creating a new one. 05:09:42 self.finish(request) 05:09:42 assert self.cached_result is None 05:09:42 05:09:42 # Add finalizer to requested fixtures we saved previously. 05:09:42 # We make sure to do this after checking for cached value to avoid 05:09:42 # adding our finalizer multiple times. (#12135) 05:09:42 finalizer = functools.partial(self.finish, request=request) 05:09:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:09:42 parent_fixture.addfinalizer(finalizer) 05:09:42 05:09:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:09:42 # which is executed last. 05:09:42 > assert not self._finalizers 05:09:42 ^^^^^^^^^^^^^^^^^^^^ 05:09:42 E AssertionError 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:09:42 ____ ERROR at setup of TestTransportPCEPce.test_11_path_computation_rdm_uni ____ 05:09:42 05:09:42 cls = 05:09:42 func = . at 0x7f359068fec0> 05:09:42 when = 'setup' 05:09:42 reraise = (, ) 05:09:42 05:09:42 @classmethod 05:09:42 def from_call( 05:09:42 cls, 05:09:42 func: Callable[[], TResult], 05:09:42 when: Literal["collect", "setup", "call", "teardown"], 05:09:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:09:42 ) -> CallInfo[TResult]: 05:09:42 """Call func, wrapping the result in a CallInfo. 05:09:42 05:09:42 :param func: 05:09:42 The function to call. Called without arguments. 05:09:42 :type func: Callable[[], _pytest.runner.TResult] 05:09:42 :param when: 05:09:42 The phase in which the function is called. 05:09:42 :param reraise: 05:09:42 Exception or exceptions that shall propagate if raised by the 05:09:42 function, instead of being wrapped in the CallInfo. 05:09:42 """ 05:09:42 excinfo = None 05:09:42 instant = timing.Instant() 05:09:42 try: 05:09:42 > result: TResult | None = func() 05:09:42 ^^^^^^ 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:09:42 lambda: runtest_hook(item=item, **kwds), 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:09:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:09:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:09:42 yield 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:09:42 return (yield) 05:09:42 ^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:09:42 item.session._setupstate.setup(item) 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:09:42 col.setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:09:42 super().setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:09:42 self._request._fillfixtures() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:09:42 item.funcargs[argname] = self.getfixturevalue(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:09:42 fixturedef = self._get_active_fixturedef(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:09:42 fixturedef.execute(request=subrequest) 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 05:09:42 self = 05:09:42 request = > 05:09:42 05:09:42 def execute(self, request: SubRequest) -> FixtureValue: 05:09:42 """Return the value of this fixture, executing it if not cached.""" 05:09:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:09:42 # This needs to be done before checking if we have a cached value, since 05:09:42 # if a dependent fixture has their cache invalidated, e.g. due to 05:09:42 # parametrization, they finalize themselves and fixtures depending on it 05:09:42 # (which will likely include this fixture) setting `self.cached_result = None`. 05:09:42 # See #4871 05:09:42 requested_fixtures_that_should_finalize_us = [] 05:09:42 for argname in self.argnames: 05:09:42 fixturedef = request._get_active_fixturedef(argname) 05:09:42 # Saves requested fixtures in a list so we later can add our finalizer 05:09:42 # to them, ensuring that if a requested fixture gets torn down we get torn 05:09:42 # down first. This is generally handled by SetupState, but still currently 05:09:42 # needed when this fixture is not parametrized but depends on a parametrized 05:09:42 # fixture. 05:09:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:09:42 05:09:42 # Check for (and return) cached value/exception. 05:09:42 if self.cached_result is not None: 05:09:42 request_cache_key = self.cache_key(request) 05:09:42 cache_key = self.cached_result[1] 05:09:42 try: 05:09:42 # Attempt to make a normal == check: this might fail for objects 05:09:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:09:42 cache_hit = bool(request_cache_key == cache_key) 05:09:42 except (ValueError, RuntimeError): 05:09:42 # If the comparison raises, use 'is' as fallback. 05:09:42 cache_hit = request_cache_key is cache_key 05:09:42 05:09:42 if cache_hit: 05:09:42 if self.cached_result[2] is not None: 05:09:42 exc, exc_tb = self.cached_result[2] 05:09:42 raise exc.with_traceback(exc_tb) 05:09:42 else: 05:09:42 return self.cached_result[0] 05:09:42 # We have a previous but differently parametrized fixture instance 05:09:42 # so we need to tear it down before creating a new one. 05:09:42 self.finish(request) 05:09:42 assert self.cached_result is None 05:09:42 05:09:42 # Add finalizer to requested fixtures we saved previously. 05:09:42 # We make sure to do this after checking for cached value to avoid 05:09:42 # adding our finalizer multiple times. (#12135) 05:09:42 finalizer = functools.partial(self.finish, request=request) 05:09:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:09:42 parent_fixture.addfinalizer(finalizer) 05:09:42 05:09:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:09:42 # which is executed last. 05:09:42 > assert not self._finalizers 05:09:42 ^^^^^^^^^^^^^^^^^^^^ 05:09:42 E AssertionError 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:09:42 _____ ERROR at setup of TestTransportPCEPce.test_12_load_complex_topology ______ 05:09:42 05:09:42 cls = 05:09:42 func = . at 0x7f35900fd940> 05:09:42 when = 'setup' 05:09:42 reraise = (, ) 05:09:42 05:09:42 @classmethod 05:09:42 def from_call( 05:09:42 cls, 05:09:42 func: Callable[[], TResult], 05:09:42 when: Literal["collect", "setup", "call", "teardown"], 05:09:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:09:42 ) -> CallInfo[TResult]: 05:09:42 """Call func, wrapping the result in a CallInfo. 05:09:42 05:09:42 :param func: 05:09:42 The function to call. Called without arguments. 05:09:42 :type func: Callable[[], _pytest.runner.TResult] 05:09:42 :param when: 05:09:42 The phase in which the function is called. 05:09:42 :param reraise: 05:09:42 Exception or exceptions that shall propagate if raised by the 05:09:42 function, instead of being wrapped in the CallInfo. 05:09:42 """ 05:09:42 excinfo = None 05:09:42 instant = timing.Instant() 05:09:42 try: 05:09:42 > result: TResult | None = func() 05:09:42 ^^^^^^ 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:09:42 lambda: runtest_hook(item=item, **kwds), 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:09:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:09:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:09:42 yield 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:09:42 return (yield) 05:09:42 ^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:09:42 item.session._setupstate.setup(item) 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:09:42 col.setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:09:42 super().setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:09:42 self._request._fillfixtures() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:09:42 item.funcargs[argname] = self.getfixturevalue(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:09:42 fixturedef = self._get_active_fixturedef(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:09:42 fixturedef.execute(request=subrequest) 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 05:09:42 self = 05:09:42 request = > 05:09:42 05:09:42 def execute(self, request: SubRequest) -> FixtureValue: 05:09:42 """Return the value of this fixture, executing it if not cached.""" 05:09:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:09:42 # This needs to be done before checking if we have a cached value, since 05:09:42 # if a dependent fixture has their cache invalidated, e.g. due to 05:09:42 # parametrization, they finalize themselves and fixtures depending on it 05:09:42 # (which will likely include this fixture) setting `self.cached_result = None`. 05:09:42 # See #4871 05:09:42 requested_fixtures_that_should_finalize_us = [] 05:09:42 for argname in self.argnames: 05:09:42 fixturedef = request._get_active_fixturedef(argname) 05:09:42 # Saves requested fixtures in a list so we later can add our finalizer 05:09:42 # to them, ensuring that if a requested fixture gets torn down we get torn 05:09:42 # down first. This is generally handled by SetupState, but still currently 05:09:42 # needed when this fixture is not parametrized but depends on a parametrized 05:09:42 # fixture. 05:09:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:09:42 05:09:42 # Check for (and return) cached value/exception. 05:09:42 if self.cached_result is not None: 05:09:42 request_cache_key = self.cache_key(request) 05:09:42 cache_key = self.cached_result[1] 05:09:42 try: 05:09:42 # Attempt to make a normal == check: this might fail for objects 05:09:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:09:42 cache_hit = bool(request_cache_key == cache_key) 05:09:42 except (ValueError, RuntimeError): 05:09:42 # If the comparison raises, use 'is' as fallback. 05:09:42 cache_hit = request_cache_key is cache_key 05:09:42 05:09:42 if cache_hit: 05:09:42 if self.cached_result[2] is not None: 05:09:42 exc, exc_tb = self.cached_result[2] 05:09:42 raise exc.with_traceback(exc_tb) 05:09:42 else: 05:09:42 return self.cached_result[0] 05:09:42 # We have a previous but differently parametrized fixture instance 05:09:42 # so we need to tear it down before creating a new one. 05:09:42 self.finish(request) 05:09:42 assert self.cached_result is None 05:09:42 05:09:42 # Add finalizer to requested fixtures we saved previously. 05:09:42 # We make sure to do this after checking for cached value to avoid 05:09:42 # adding our finalizer multiple times. (#12135) 05:09:42 finalizer = functools.partial(self.finish, request=request) 05:09:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:09:42 parent_fixture.addfinalizer(finalizer) 05:09:42 05:09:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:09:42 # which is executed last. 05:09:42 > assert not self._finalizers 05:09:42 ^^^^^^^^^^^^^^^^^^^^ 05:09:42 E AssertionError 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:09:42 ___________ ERROR at setup of TestTransportPCEPce.test_13_get_nodeId ___________ 05:09:42 05:09:42 cls = 05:09:42 func = . at 0x7f35906a31a0> 05:09:42 when = 'setup' 05:09:42 reraise = (, ) 05:09:42 05:09:42 @classmethod 05:09:42 def from_call( 05:09:42 cls, 05:09:42 func: Callable[[], TResult], 05:09:42 when: Literal["collect", "setup", "call", "teardown"], 05:09:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:09:42 ) -> CallInfo[TResult]: 05:09:42 """Call func, wrapping the result in a CallInfo. 05:09:42 05:09:42 :param func: 05:09:42 The function to call. Called without arguments. 05:09:42 :type func: Callable[[], _pytest.runner.TResult] 05:09:42 :param when: 05:09:42 The phase in which the function is called. 05:09:42 :param reraise: 05:09:42 Exception or exceptions that shall propagate if raised by the 05:09:42 function, instead of being wrapped in the CallInfo. 05:09:42 """ 05:09:42 excinfo = None 05:09:42 instant = timing.Instant() 05:09:42 try: 05:09:42 > result: TResult | None = func() 05:09:42 ^^^^^^ 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:09:42 lambda: runtest_hook(item=item, **kwds), 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:09:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:09:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:09:42 yield 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:09:42 return (yield) 05:09:42 ^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:09:42 item.session._setupstate.setup(item) 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:09:42 col.setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:09:42 super().setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:09:42 self._request._fillfixtures() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:09:42 item.funcargs[argname] = self.getfixturevalue(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:09:42 fixturedef = self._get_active_fixturedef(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:09:42 fixturedef.execute(request=subrequest) 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 05:09:42 self = 05:09:42 request = > 05:09:42 05:09:42 def execute(self, request: SubRequest) -> FixtureValue: 05:09:42 """Return the value of this fixture, executing it if not cached.""" 05:09:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:09:42 # This needs to be done before checking if we have a cached value, since 05:09:42 # if a dependent fixture has their cache invalidated, e.g. due to 05:09:42 # parametrization, they finalize themselves and fixtures depending on it 05:09:42 # (which will likely include this fixture) setting `self.cached_result = None`. 05:09:42 # See #4871 05:09:42 requested_fixtures_that_should_finalize_us = [] 05:09:42 for argname in self.argnames: 05:09:42 fixturedef = request._get_active_fixturedef(argname) 05:09:42 # Saves requested fixtures in a list so we later can add our finalizer 05:09:42 # to them, ensuring that if a requested fixture gets torn down we get torn 05:09:42 # down first. This is generally handled by SetupState, but still currently 05:09:42 # needed when this fixture is not parametrized but depends on a parametrized 05:09:42 # fixture. 05:09:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:09:42 05:09:42 # Check for (and return) cached value/exception. 05:09:42 if self.cached_result is not None: 05:09:42 request_cache_key = self.cache_key(request) 05:09:42 cache_key = self.cached_result[1] 05:09:42 try: 05:09:42 # Attempt to make a normal == check: this might fail for objects 05:09:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:09:42 cache_hit = bool(request_cache_key == cache_key) 05:09:42 except (ValueError, RuntimeError): 05:09:42 # If the comparison raises, use 'is' as fallback. 05:09:42 cache_hit = request_cache_key is cache_key 05:09:42 05:09:42 if cache_hit: 05:09:42 if self.cached_result[2] is not None: 05:09:42 exc, exc_tb = self.cached_result[2] 05:09:42 raise exc.with_traceback(exc_tb) 05:09:42 else: 05:09:42 return self.cached_result[0] 05:09:42 # We have a previous but differently parametrized fixture instance 05:09:42 # so we need to tear it down before creating a new one. 05:09:42 self.finish(request) 05:09:42 assert self.cached_result is None 05:09:42 05:09:42 # Add finalizer to requested fixtures we saved previously. 05:09:42 # We make sure to do this after checking for cached value to avoid 05:09:42 # adding our finalizer multiple times. (#12135) 05:09:42 finalizer = functools.partial(self.finish, request=request) 05:09:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:09:42 parent_fixture.addfinalizer(finalizer) 05:09:42 05:09:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:09:42 # which is executed last. 05:09:42 > assert not self._finalizers 05:09:42 ^^^^^^^^^^^^^^^^^^^^ 05:09:42 E AssertionError 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:09:42 _____ ERROR at setup of TestTransportPCEPce.test_14_fail_path_computation ______ 05:09:42 05:09:42 cls = 05:09:42 func = . at 0x7f359068f380> 05:09:42 when = 'setup' 05:09:42 reraise = (, ) 05:09:42 05:09:42 @classmethod 05:09:42 def from_call( 05:09:42 cls, 05:09:42 func: Callable[[], TResult], 05:09:42 when: Literal["collect", "setup", "call", "teardown"], 05:09:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:09:42 ) -> CallInfo[TResult]: 05:09:42 """Call func, wrapping the result in a CallInfo. 05:09:42 05:09:42 :param func: 05:09:42 The function to call. Called without arguments. 05:09:42 :type func: Callable[[], _pytest.runner.TResult] 05:09:42 :param when: 05:09:42 The phase in which the function is called. 05:09:42 :param reraise: 05:09:42 Exception or exceptions that shall propagate if raised by the 05:09:42 function, instead of being wrapped in the CallInfo. 05:09:42 """ 05:09:42 excinfo = None 05:09:42 instant = timing.Instant() 05:09:42 try: 05:09:42 > result: TResult | None = func() 05:09:42 ^^^^^^ 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:09:42 lambda: runtest_hook(item=item, **kwds), 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:09:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:09:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:09:42 yield 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:09:42 return (yield) 05:09:42 ^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:09:42 item.session._setupstate.setup(item) 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:09:42 col.setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:09:42 super().setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:09:42 self._request._fillfixtures() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:09:42 item.funcargs[argname] = self.getfixturevalue(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:09:42 fixturedef = self._get_active_fixturedef(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:09:42 fixturedef.execute(request=subrequest) 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 05:09:42 self = 05:09:42 request = > 05:09:42 05:09:42 def execute(self, request: SubRequest) -> FixtureValue: 05:09:42 """Return the value of this fixture, executing it if not cached.""" 05:09:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:09:42 # This needs to be done before checking if we have a cached value, since 05:09:42 # if a dependent fixture has their cache invalidated, e.g. due to 05:09:42 # parametrization, they finalize themselves and fixtures depending on it 05:09:42 # (which will likely include this fixture) setting `self.cached_result = None`. 05:09:42 # See #4871 05:09:42 requested_fixtures_that_should_finalize_us = [] 05:09:42 for argname in self.argnames: 05:09:42 fixturedef = request._get_active_fixturedef(argname) 05:09:42 # Saves requested fixtures in a list so we later can add our finalizer 05:09:42 # to them, ensuring that if a requested fixture gets torn down we get torn 05:09:42 # down first. This is generally handled by SetupState, but still currently 05:09:42 # needed when this fixture is not parametrized but depends on a parametrized 05:09:42 # fixture. 05:09:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:09:42 05:09:42 # Check for (and return) cached value/exception. 05:09:42 if self.cached_result is not None: 05:09:42 request_cache_key = self.cache_key(request) 05:09:42 cache_key = self.cached_result[1] 05:09:42 try: 05:09:42 # Attempt to make a normal == check: this might fail for objects 05:09:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:09:42 cache_hit = bool(request_cache_key == cache_key) 05:09:42 except (ValueError, RuntimeError): 05:09:42 # If the comparison raises, use 'is' as fallback. 05:09:42 cache_hit = request_cache_key is cache_key 05:09:42 05:09:42 if cache_hit: 05:09:42 if self.cached_result[2] is not None: 05:09:42 exc, exc_tb = self.cached_result[2] 05:09:42 raise exc.with_traceback(exc_tb) 05:09:42 else: 05:09:42 return self.cached_result[0] 05:09:42 # We have a previous but differently parametrized fixture instance 05:09:42 # so we need to tear it down before creating a new one. 05:09:42 self.finish(request) 05:09:42 assert self.cached_result is None 05:09:42 05:09:42 # Add finalizer to requested fixtures we saved previously. 05:09:42 # We make sure to do this after checking for cached value to avoid 05:09:42 # adding our finalizer multiple times. (#12135) 05:09:42 finalizer = functools.partial(self.finish, request=request) 05:09:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:09:42 parent_fixture.addfinalizer(finalizer) 05:09:42 05:09:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:09:42 # which is executed last. 05:09:42 > assert not self._finalizers 05:09:42 ^^^^^^^^^^^^^^^^^^^^ 05:09:42 E AssertionError 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:09:42 ___ ERROR at setup of TestTransportPCEPce.test_15_success1_path_computation ____ 05:09:42 05:09:42 cls = 05:09:42 func = . at 0x7f35900fe980> 05:09:42 when = 'setup' 05:09:42 reraise = (, ) 05:09:42 05:09:42 @classmethod 05:09:42 def from_call( 05:09:42 cls, 05:09:42 func: Callable[[], TResult], 05:09:42 when: Literal["collect", "setup", "call", "teardown"], 05:09:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:09:42 ) -> CallInfo[TResult]: 05:09:42 """Call func, wrapping the result in a CallInfo. 05:09:42 05:09:42 :param func: 05:09:42 The function to call. Called without arguments. 05:09:42 :type func: Callable[[], _pytest.runner.TResult] 05:09:42 :param when: 05:09:42 The phase in which the function is called. 05:09:42 :param reraise: 05:09:42 Exception or exceptions that shall propagate if raised by the 05:09:42 function, instead of being wrapped in the CallInfo. 05:09:42 """ 05:09:42 excinfo = None 05:09:42 instant = timing.Instant() 05:09:42 try: 05:09:42 > result: TResult | None = func() 05:09:42 ^^^^^^ 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:09:42 lambda: runtest_hook(item=item, **kwds), 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:09:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:09:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:09:42 yield 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:09:42 return (yield) 05:09:42 ^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:09:42 item.session._setupstate.setup(item) 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:09:42 col.setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:09:42 super().setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:09:42 self._request._fillfixtures() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:09:42 item.funcargs[argname] = self.getfixturevalue(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:09:42 fixturedef = self._get_active_fixturedef(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:09:42 fixturedef.execute(request=subrequest) 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 05:09:42 self = 05:09:42 request = > 05:09:42 05:09:42 def execute(self, request: SubRequest) -> FixtureValue: 05:09:42 """Return the value of this fixture, executing it if not cached.""" 05:09:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:09:42 # This needs to be done before checking if we have a cached value, since 05:09:42 # if a dependent fixture has their cache invalidated, e.g. due to 05:09:42 # parametrization, they finalize themselves and fixtures depending on it 05:09:42 # (which will likely include this fixture) setting `self.cached_result = None`. 05:09:42 # See #4871 05:09:42 requested_fixtures_that_should_finalize_us = [] 05:09:42 for argname in self.argnames: 05:09:42 fixturedef = request._get_active_fixturedef(argname) 05:09:42 # Saves requested fixtures in a list so we later can add our finalizer 05:09:42 # to them, ensuring that if a requested fixture gets torn down we get torn 05:09:42 # down first. This is generally handled by SetupState, but still currently 05:09:42 # needed when this fixture is not parametrized but depends on a parametrized 05:09:42 # fixture. 05:09:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:09:42 05:09:42 # Check for (and return) cached value/exception. 05:09:42 if self.cached_result is not None: 05:09:42 request_cache_key = self.cache_key(request) 05:09:42 cache_key = self.cached_result[1] 05:09:42 try: 05:09:42 # Attempt to make a normal == check: this might fail for objects 05:09:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:09:42 cache_hit = bool(request_cache_key == cache_key) 05:09:42 except (ValueError, RuntimeError): 05:09:42 # If the comparison raises, use 'is' as fallback. 05:09:42 cache_hit = request_cache_key is cache_key 05:09:42 05:09:42 if cache_hit: 05:09:42 if self.cached_result[2] is not None: 05:09:42 exc, exc_tb = self.cached_result[2] 05:09:42 raise exc.with_traceback(exc_tb) 05:09:42 else: 05:09:42 return self.cached_result[0] 05:09:42 # We have a previous but differently parametrized fixture instance 05:09:42 # so we need to tear it down before creating a new one. 05:09:42 self.finish(request) 05:09:42 assert self.cached_result is None 05:09:42 05:09:42 # Add finalizer to requested fixtures we saved previously. 05:09:42 # We make sure to do this after checking for cached value to avoid 05:09:42 # adding our finalizer multiple times. (#12135) 05:09:42 finalizer = functools.partial(self.finish, request=request) 05:09:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:09:42 parent_fixture.addfinalizer(finalizer) 05:09:42 05:09:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:09:42 # which is executed last. 05:09:42 > assert not self._finalizers 05:09:42 ^^^^^^^^^^^^^^^^^^^^ 05:09:42 E AssertionError 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:09:42 ___ ERROR at setup of TestTransportPCEPce.test_16_success2_path_computation ____ 05:09:42 05:09:42 cls = 05:09:42 func = . at 0x7f35906a0540> 05:09:42 when = 'setup' 05:09:42 reraise = (, ) 05:09:42 05:09:42 @classmethod 05:09:42 def from_call( 05:09:42 cls, 05:09:42 func: Callable[[], TResult], 05:09:42 when: Literal["collect", "setup", "call", "teardown"], 05:09:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:09:42 ) -> CallInfo[TResult]: 05:09:42 """Call func, wrapping the result in a CallInfo. 05:09:42 05:09:42 :param func: 05:09:42 The function to call. Called without arguments. 05:09:42 :type func: Callable[[], _pytest.runner.TResult] 05:09:42 :param when: 05:09:42 The phase in which the function is called. 05:09:42 :param reraise: 05:09:42 Exception or exceptions that shall propagate if raised by the 05:09:42 function, instead of being wrapped in the CallInfo. 05:09:42 """ 05:09:42 excinfo = None 05:09:42 instant = timing.Instant() 05:09:42 try: 05:09:42 > result: TResult | None = func() 05:09:42 ^^^^^^ 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:09:42 lambda: runtest_hook(item=item, **kwds), 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:09:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:09:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:09:42 yield 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:09:42 return (yield) 05:09:42 ^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:09:42 item.session._setupstate.setup(item) 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:09:42 col.setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:09:42 super().setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:09:42 self._request._fillfixtures() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:09:42 item.funcargs[argname] = self.getfixturevalue(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:09:42 fixturedef = self._get_active_fixturedef(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:09:42 fixturedef.execute(request=subrequest) 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 05:09:42 self = 05:09:42 request = > 05:09:42 05:09:42 def execute(self, request: SubRequest) -> FixtureValue: 05:09:42 """Return the value of this fixture, executing it if not cached.""" 05:09:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:09:42 # This needs to be done before checking if we have a cached value, since 05:09:42 # if a dependent fixture has their cache invalidated, e.g. due to 05:09:42 # parametrization, they finalize themselves and fixtures depending on it 05:09:42 # (which will likely include this fixture) setting `self.cached_result = None`. 05:09:42 # See #4871 05:09:42 requested_fixtures_that_should_finalize_us = [] 05:09:42 for argname in self.argnames: 05:09:42 fixturedef = request._get_active_fixturedef(argname) 05:09:42 # Saves requested fixtures in a list so we later can add our finalizer 05:09:42 # to them, ensuring that if a requested fixture gets torn down we get torn 05:09:42 # down first. This is generally handled by SetupState, but still currently 05:09:42 # needed when this fixture is not parametrized but depends on a parametrized 05:09:42 # fixture. 05:09:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:09:42 05:09:42 # Check for (and return) cached value/exception. 05:09:42 if self.cached_result is not None: 05:09:42 request_cache_key = self.cache_key(request) 05:09:42 cache_key = self.cached_result[1] 05:09:42 try: 05:09:42 # Attempt to make a normal == check: this might fail for objects 05:09:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:09:42 cache_hit = bool(request_cache_key == cache_key) 05:09:42 except (ValueError, RuntimeError): 05:09:42 # If the comparison raises, use 'is' as fallback. 05:09:42 cache_hit = request_cache_key is cache_key 05:09:42 05:09:42 if cache_hit: 05:09:42 if self.cached_result[2] is not None: 05:09:42 exc, exc_tb = self.cached_result[2] 05:09:42 raise exc.with_traceback(exc_tb) 05:09:42 else: 05:09:42 return self.cached_result[0] 05:09:42 # We have a previous but differently parametrized fixture instance 05:09:42 # so we need to tear it down before creating a new one. 05:09:42 self.finish(request) 05:09:42 assert self.cached_result is None 05:09:42 05:09:42 # Add finalizer to requested fixtures we saved previously. 05:09:42 # We make sure to do this after checking for cached value to avoid 05:09:42 # adding our finalizer multiple times. (#12135) 05:09:42 finalizer = functools.partial(self.finish, request=request) 05:09:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:09:42 parent_fixture.addfinalizer(finalizer) 05:09:42 05:09:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:09:42 # which is executed last. 05:09:42 > assert not self._finalizers 05:09:42 ^^^^^^^^^^^^^^^^^^^^ 05:09:42 E AssertionError 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:09:42 ___ ERROR at setup of TestTransportPCEPce.test_17_success3_path_computation ____ 05:09:42 05:09:42 cls = 05:09:42 func = . at 0x7f359068f380> 05:09:42 when = 'setup' 05:09:42 reraise = (, ) 05:09:42 05:09:42 @classmethod 05:09:42 def from_call( 05:09:42 cls, 05:09:42 func: Callable[[], TResult], 05:09:42 when: Literal["collect", "setup", "call", "teardown"], 05:09:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:09:42 ) -> CallInfo[TResult]: 05:09:42 """Call func, wrapping the result in a CallInfo. 05:09:42 05:09:42 :param func: 05:09:42 The function to call. Called without arguments. 05:09:42 :type func: Callable[[], _pytest.runner.TResult] 05:09:42 :param when: 05:09:42 The phase in which the function is called. 05:09:42 :param reraise: 05:09:42 Exception or exceptions that shall propagate if raised by the 05:09:42 function, instead of being wrapped in the CallInfo. 05:09:42 """ 05:09:42 excinfo = None 05:09:42 instant = timing.Instant() 05:09:42 try: 05:09:42 > result: TResult | None = func() 05:09:42 ^^^^^^ 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:09:42 lambda: runtest_hook(item=item, **kwds), 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:09:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:09:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:09:42 yield 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:09:42 return (yield) 05:09:42 ^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:09:42 item.session._setupstate.setup(item) 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:09:42 col.setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:09:42 super().setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:09:42 self._request._fillfixtures() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:09:42 item.funcargs[argname] = self.getfixturevalue(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:09:42 fixturedef = self._get_active_fixturedef(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:09:42 fixturedef.execute(request=subrequest) 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 05:09:42 self = 05:09:42 request = > 05:09:42 05:09:42 def execute(self, request: SubRequest) -> FixtureValue: 05:09:42 """Return the value of this fixture, executing it if not cached.""" 05:09:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:09:42 # This needs to be done before checking if we have a cached value, since 05:09:42 # if a dependent fixture has their cache invalidated, e.g. due to 05:09:42 # parametrization, they finalize themselves and fixtures depending on it 05:09:42 # (which will likely include this fixture) setting `self.cached_result = None`. 05:09:42 # See #4871 05:09:42 requested_fixtures_that_should_finalize_us = [] 05:09:42 for argname in self.argnames: 05:09:42 fixturedef = request._get_active_fixturedef(argname) 05:09:42 # Saves requested fixtures in a list so we later can add our finalizer 05:09:42 # to them, ensuring that if a requested fixture gets torn down we get torn 05:09:42 # down first. This is generally handled by SetupState, but still currently 05:09:42 # needed when this fixture is not parametrized but depends on a parametrized 05:09:42 # fixture. 05:09:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:09:42 05:09:42 # Check for (and return) cached value/exception. 05:09:42 if self.cached_result is not None: 05:09:42 request_cache_key = self.cache_key(request) 05:09:42 cache_key = self.cached_result[1] 05:09:42 try: 05:09:42 # Attempt to make a normal == check: this might fail for objects 05:09:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:09:42 cache_hit = bool(request_cache_key == cache_key) 05:09:42 except (ValueError, RuntimeError): 05:09:42 # If the comparison raises, use 'is' as fallback. 05:09:42 cache_hit = request_cache_key is cache_key 05:09:42 05:09:42 if cache_hit: 05:09:42 if self.cached_result[2] is not None: 05:09:42 exc, exc_tb = self.cached_result[2] 05:09:42 raise exc.with_traceback(exc_tb) 05:09:42 else: 05:09:42 return self.cached_result[0] 05:09:42 # We have a previous but differently parametrized fixture instance 05:09:42 # so we need to tear it down before creating a new one. 05:09:42 self.finish(request) 05:09:42 assert self.cached_result is None 05:09:42 05:09:42 # Add finalizer to requested fixtures we saved previously. 05:09:42 # We make sure to do this after checking for cached value to avoid 05:09:42 # adding our finalizer multiple times. (#12135) 05:09:42 finalizer = functools.partial(self.finish, request=request) 05:09:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:09:42 parent_fixture.addfinalizer(finalizer) 05:09:42 05:09:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:09:42 # which is executed last. 05:09:42 > assert not self._finalizers 05:09:42 ^^^^^^^^^^^^^^^^^^^^ 05:09:42 E AssertionError 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:09:42 _ ERROR at setup of TestTransportPCEPce.test_18_path_computation_before_oms_attribute_deletion _ 05:09:42 05:09:42 cls = 05:09:42 func = . at 0x7f35900fe2a0> 05:09:42 when = 'setup' 05:09:42 reraise = (, ) 05:09:42 05:09:42 @classmethod 05:09:42 def from_call( 05:09:42 cls, 05:09:42 func: Callable[[], TResult], 05:09:42 when: Literal["collect", "setup", "call", "teardown"], 05:09:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:09:42 ) -> CallInfo[TResult]: 05:09:42 """Call func, wrapping the result in a CallInfo. 05:09:42 05:09:42 :param func: 05:09:42 The function to call. Called without arguments. 05:09:42 :type func: Callable[[], _pytest.runner.TResult] 05:09:42 :param when: 05:09:42 The phase in which the function is called. 05:09:42 :param reraise: 05:09:42 Exception or exceptions that shall propagate if raised by the 05:09:42 function, instead of being wrapped in the CallInfo. 05:09:42 """ 05:09:42 excinfo = None 05:09:42 instant = timing.Instant() 05:09:42 try: 05:09:42 > result: TResult | None = func() 05:09:42 ^^^^^^ 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:09:42 lambda: runtest_hook(item=item, **kwds), 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:09:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:09:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:09:42 yield 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:09:42 return (yield) 05:09:42 ^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:09:42 item.session._setupstate.setup(item) 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:09:42 col.setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:09:42 super().setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:09:42 self._request._fillfixtures() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:09:42 item.funcargs[argname] = self.getfixturevalue(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:09:42 fixturedef = self._get_active_fixturedef(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:09:42 fixturedef.execute(request=subrequest) 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 05:09:42 self = 05:09:42 request = > 05:09:42 05:09:42 def execute(self, request: SubRequest) -> FixtureValue: 05:09:42 """Return the value of this fixture, executing it if not cached.""" 05:09:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:09:42 # This needs to be done before checking if we have a cached value, since 05:09:42 # if a dependent fixture has their cache invalidated, e.g. due to 05:09:42 # parametrization, they finalize themselves and fixtures depending on it 05:09:42 # (which will likely include this fixture) setting `self.cached_result = None`. 05:09:42 # See #4871 05:09:42 requested_fixtures_that_should_finalize_us = [] 05:09:42 for argname in self.argnames: 05:09:42 fixturedef = request._get_active_fixturedef(argname) 05:09:42 # Saves requested fixtures in a list so we later can add our finalizer 05:09:42 # to them, ensuring that if a requested fixture gets torn down we get torn 05:09:42 # down first. This is generally handled by SetupState, but still currently 05:09:42 # needed when this fixture is not parametrized but depends on a parametrized 05:09:42 # fixture. 05:09:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:09:42 05:09:42 # Check for (and return) cached value/exception. 05:09:42 if self.cached_result is not None: 05:09:42 request_cache_key = self.cache_key(request) 05:09:42 cache_key = self.cached_result[1] 05:09:42 try: 05:09:42 # Attempt to make a normal == check: this might fail for objects 05:09:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:09:42 cache_hit = bool(request_cache_key == cache_key) 05:09:42 except (ValueError, RuntimeError): 05:09:42 # If the comparison raises, use 'is' as fallback. 05:09:42 cache_hit = request_cache_key is cache_key 05:09:42 05:09:42 if cache_hit: 05:09:42 if self.cached_result[2] is not None: 05:09:42 exc, exc_tb = self.cached_result[2] 05:09:42 raise exc.with_traceback(exc_tb) 05:09:42 else: 05:09:42 return self.cached_result[0] 05:09:42 # We have a previous but differently parametrized fixture instance 05:09:42 # so we need to tear it down before creating a new one. 05:09:42 self.finish(request) 05:09:42 assert self.cached_result is None 05:09:42 05:09:42 # Add finalizer to requested fixtures we saved previously. 05:09:42 # We make sure to do this after checking for cached value to avoid 05:09:42 # adding our finalizer multiple times. (#12135) 05:09:42 finalizer = functools.partial(self.finish, request=request) 05:09:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:09:42 parent_fixture.addfinalizer(finalizer) 05:09:42 05:09:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:09:42 # which is executed last. 05:09:42 > assert not self._finalizers 05:09:42 ^^^^^^^^^^^^^^^^^^^^ 05:09:42 E AssertionError 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:09:42 _ ERROR at setup of TestTransportPCEPce.test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link _ 05:09:42 05:09:42 cls = 05:09:42 func = . at 0x7f35906a31a0> 05:09:42 when = 'setup' 05:09:42 reraise = (, ) 05:09:42 05:09:42 @classmethod 05:09:42 def from_call( 05:09:42 cls, 05:09:42 func: Callable[[], TResult], 05:09:42 when: Literal["collect", "setup", "call", "teardown"], 05:09:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:09:42 ) -> CallInfo[TResult]: 05:09:42 """Call func, wrapping the result in a CallInfo. 05:09:42 05:09:42 :param func: 05:09:42 The function to call. Called without arguments. 05:09:42 :type func: Callable[[], _pytest.runner.TResult] 05:09:42 :param when: 05:09:42 The phase in which the function is called. 05:09:42 :param reraise: 05:09:42 Exception or exceptions that shall propagate if raised by the 05:09:42 function, instead of being wrapped in the CallInfo. 05:09:42 """ 05:09:42 excinfo = None 05:09:42 instant = timing.Instant() 05:09:42 try: 05:09:42 > result: TResult | None = func() 05:09:42 ^^^^^^ 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:09:42 lambda: runtest_hook(item=item, **kwds), 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:09:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:09:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:09:42 yield 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:09:42 return (yield) 05:09:42 ^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:09:42 item.session._setupstate.setup(item) 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:09:42 col.setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:09:42 super().setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:09:42 self._request._fillfixtures() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:09:42 item.funcargs[argname] = self.getfixturevalue(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:09:42 fixturedef = self._get_active_fixturedef(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:09:42 fixturedef.execute(request=subrequest) 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 05:09:42 self = 05:09:42 request = > 05:09:42 05:09:42 def execute(self, request: SubRequest) -> FixtureValue: 05:09:42 """Return the value of this fixture, executing it if not cached.""" 05:09:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:09:42 # This needs to be done before checking if we have a cached value, since 05:09:42 # if a dependent fixture has their cache invalidated, e.g. due to 05:09:42 # parametrization, they finalize themselves and fixtures depending on it 05:09:42 # (which will likely include this fixture) setting `self.cached_result = None`. 05:09:42 # See #4871 05:09:42 requested_fixtures_that_should_finalize_us = [] 05:09:42 for argname in self.argnames: 05:09:42 fixturedef = request._get_active_fixturedef(argname) 05:09:42 # Saves requested fixtures in a list so we later can add our finalizer 05:09:42 # to them, ensuring that if a requested fixture gets torn down we get torn 05:09:42 # down first. This is generally handled by SetupState, but still currently 05:09:42 # needed when this fixture is not parametrized but depends on a parametrized 05:09:42 # fixture. 05:09:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:09:42 05:09:42 # Check for (and return) cached value/exception. 05:09:42 if self.cached_result is not None: 05:09:42 request_cache_key = self.cache_key(request) 05:09:42 cache_key = self.cached_result[1] 05:09:42 try: 05:09:42 # Attempt to make a normal == check: this might fail for objects 05:09:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:09:42 cache_hit = bool(request_cache_key == cache_key) 05:09:42 except (ValueError, RuntimeError): 05:09:42 # If the comparison raises, use 'is' as fallback. 05:09:42 cache_hit = request_cache_key is cache_key 05:09:42 05:09:42 if cache_hit: 05:09:42 if self.cached_result[2] is not None: 05:09:42 exc, exc_tb = self.cached_result[2] 05:09:42 raise exc.with_traceback(exc_tb) 05:09:42 else: 05:09:42 return self.cached_result[0] 05:09:42 # We have a previous but differently parametrized fixture instance 05:09:42 # so we need to tear it down before creating a new one. 05:09:42 self.finish(request) 05:09:42 assert self.cached_result is None 05:09:42 05:09:42 # Add finalizer to requested fixtures we saved previously. 05:09:42 # We make sure to do this after checking for cached value to avoid 05:09:42 # adding our finalizer multiple times. (#12135) 05:09:42 finalizer = functools.partial(self.finish, request=request) 05:09:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:09:42 parent_fixture.addfinalizer(finalizer) 05:09:42 05:09:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:09:42 # which is executed last. 05:09:42 > assert not self._finalizers 05:09:42 ^^^^^^^^^^^^^^^^^^^^ 05:09:42 E AssertionError 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:09:42 _ ERROR at setup of TestTransportPCEPce.test_20_path_computation_after_oms_attribute_deletion _ 05:09:42 05:09:42 cls = 05:09:42 func = . at 0x7f35906a02c0> 05:09:42 when = 'setup' 05:09:42 reraise = (, ) 05:09:42 05:09:42 @classmethod 05:09:42 def from_call( 05:09:42 cls, 05:09:42 func: Callable[[], TResult], 05:09:42 when: Literal["collect", "setup", "call", "teardown"], 05:09:42 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:09:42 ) -> CallInfo[TResult]: 05:09:42 """Call func, wrapping the result in a CallInfo. 05:09:42 05:09:42 :param func: 05:09:42 The function to call. Called without arguments. 05:09:42 :type func: Callable[[], _pytest.runner.TResult] 05:09:42 :param when: 05:09:42 The phase in which the function is called. 05:09:42 :param reraise: 05:09:42 Exception or exceptions that shall propagate if raised by the 05:09:42 function, instead of being wrapped in the CallInfo. 05:09:42 """ 05:09:42 excinfo = None 05:09:42 instant = timing.Instant() 05:09:42 try: 05:09:42 > result: TResult | None = func() 05:09:42 ^^^^^^ 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:361: 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:09:42 lambda: runtest_hook(item=item, **kwds), 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:09:42 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:09:42 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:09:42 yield 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:09:42 return (yield) 05:09:42 ^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:09:42 item.session._setupstate.setup(item) 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:09:42 col.setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:09:42 super().setup() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:09:42 self._request._fillfixtures() 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:09:42 item.funcargs[argname] = self.getfixturevalue(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:09:42 fixturedef = self._get_active_fixturedef(argname) 05:09:42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:09:42 fixturedef.execute(request=subrequest) 05:09:42 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:09:42 05:09:42 self = 05:09:42 request = > 05:09:42 05:09:42 def execute(self, request: SubRequest) -> FixtureValue: 05:09:42 """Return the value of this fixture, executing it if not cached.""" 05:09:42 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:09:42 # This needs to be done before checking if we have a cached value, since 05:09:42 # if a dependent fixture has their cache invalidated, e.g. due to 05:09:42 # parametrization, they finalize themselves and fixtures depending on it 05:09:42 # (which will likely include this fixture) setting `self.cached_result = None`. 05:09:42 # See #4871 05:09:42 requested_fixtures_that_should_finalize_us = [] 05:09:42 for argname in self.argnames: 05:09:42 fixturedef = request._get_active_fixturedef(argname) 05:09:42 # Saves requested fixtures in a list so we later can add our finalizer 05:09:42 # to them, ensuring that if a requested fixture gets torn down we get torn 05:09:42 # down first. This is generally handled by SetupState, but still currently 05:09:42 # needed when this fixture is not parametrized but depends on a parametrized 05:09:42 # fixture. 05:09:42 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:09:42 05:09:42 # Check for (and return) cached value/exception. 05:09:42 if self.cached_result is not None: 05:09:42 request_cache_key = self.cache_key(request) 05:09:42 cache_key = self.cached_result[1] 05:09:42 try: 05:09:42 # Attempt to make a normal == check: this might fail for objects 05:09:42 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:09:42 cache_hit = bool(request_cache_key == cache_key) 05:09:42 except (ValueError, RuntimeError): 05:09:42 # If the comparison raises, use 'is' as fallback. 05:09:42 cache_hit = request_cache_key is cache_key 05:09:42 05:09:42 if cache_hit: 05:09:42 if self.cached_result[2] is not None: 05:09:42 exc, exc_tb = self.cached_result[2] 05:09:42 raise exc.with_traceback(exc_tb) 05:09:42 else: 05:09:42 return self.cached_result[0] 05:09:42 # We have a previous but differently parametrized fixture instance 05:09:42 # so we need to tear it down before creating a new one. 05:09:42 self.finish(request) 05:09:42 assert self.cached_result is None 05:09:42 05:09:42 # Add finalizer to requested fixtures we saved previously. 05:09:42 # We make sure to do this after checking for cached value to avoid 05:09:42 # adding our finalizer multiple times. (#12135) 05:09:42 finalizer = functools.partial(self.finish, request=request) 05:09:42 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:09:42 parent_fixture.addfinalizer(finalizer) 05:09:42 05:09:42 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:09:42 # which is executed last. 05:09:42 > assert not self._finalizers 05:09:42 ^^^^^^^^^^^^^^^^^^^^ 05:09:42 E AssertionError 05:09:42 05:09:42 ../.tox/testsPCE/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:09:42 =========================== short test summary info ============================ 05:09:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_01_load_port_mapping 05:09:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_02_load_simple_topology_bi 05:09:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_03_get_nodeId 05:09:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_04_get_linkId 05:09:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_05_path_computation_xpdr_bi 05:09:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_06_path_computation_rdm_bi 05:09:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_07_load_simple_topology_uni 05:09:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_08_get_nodeId 05:09:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_09_get_linkId 05:09:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_10_path_computation_xpdr_uni 05:09:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_11_path_computation_rdm_uni 05:09:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_12_load_complex_topology 05:09:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_13_get_nodeId 05:09:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_14_fail_path_computation 05:09:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_15_success1_path_computation 05:09:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_16_success2_path_computation 05:09:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_17_success3_path_computation 05:09:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_18_path_computation_before_oms_attribute_deletion 05:09:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_19_delete_oms_attribute_in_openroadm13toopenroadm12_link 05:09:42 ERROR transportpce_tests/pce/test01_pce.py::TestTransportPCEPce::test_20_path_computation_after_oms_attribute_deletion 05:09:42 20 errors in 123.73s (0:02:03) 05:09:42 testsPCE: exit 1 (124.02 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh pce pid=4167 05:09:42 testsPCE: FAIL ✖ in 2 minutes 50.12 seconds 05:09:42 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 05:09:50 tests_tapi: freeze> python -m pip freeze --all 05:09:50 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.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 05:09:50 tests_tapi: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi 05:09:50 using environment variables from ./karaf221.env 05:09:50 pytest -q transportpce_tests/tapi/test01_abstracted_topology.py 05:11:31 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 05:11:40 ==================================== ERRORS ==================================== 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_01_get_tapi_topology_T100G _ 05:11:40 05:11:40 cls = 05:11:40 05:11:40 @classmethod 05:11:40 def setUpClass(cls): 05:11:40 cls.init_failed = False 05:11:40 os.environ['JAVA_MIN_MEM'] = '1024M' 05:11:40 os.environ['JAVA_MAX_MEM'] = '4096M' 05:11:40 > cls.processes = test_utils.start_tpce() 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 05:11:40 transportpce_tests/tapi/test01_abstracted_topology.py:148: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 def start_tpce(): 05:11:40 if 'NO_ODL_STARTUP' in os.environ: 05:11:40 print('No OpenDaylight instance to start!') 05:11:40 return [] 05:11:40 print('starting OpenDaylight...') 05:11:40 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 05:11:40 process = start_lighty() 05:11:40 else: 05:11:40 process = start_karaf() 05:11:40 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 05:11:40 print('OpenDaylight started !') 05:11:40 else: 05:11:40 print('OpenDaylight failed to start !') 05:11:40 shutdown_process(process) 05:11:40 for pid in process_list: 05:11:40 shutdown_process(pid) 05:11:40 > sys.exit(1) 05:11:40 E SystemExit: 1 05:11:40 05:11:40 transportpce_tests/common/test_utils.py:234: SystemExit 05:11:40 ---------------------------- Captured stdout setup ----------------------------- 05:11:40 starting OpenDaylight... 05:11:40 starting KARAF (karaf221) TransportPCE build... 05:11:40 Pattern not found after 100 seconds! OpenDaylight failed to start ! 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_02_get_tapi_topology_T0 _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8f0b740> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_03_connect_rdmb ___ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8f5fc40> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_04_check_tapi_topos _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90cb5e3060> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_05_disconnect_roadmb _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90ca85b060> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_06_connect_xpdra __ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8f5f100> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_07_check_tapi_topos _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8f09b20> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_08_connect_rdma ___ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8f5f6a0> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_09_connect_rdmc ___ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90cb5e3060> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_10_check_tapi_topos _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8f0a2a0> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_11_connect_xpdra_n1_to_roadma_pp1 _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90cb5e3060> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_12_connect_roadma_pp1_to_xpdra_n1 _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8b46020> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_13_check_tapi_topology_T100G _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90cb5e3060> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_14_check_tapi_topology_T0 _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8f09a80> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 __ ERROR at setup of TestTransportPCEAbstractedTopology.test_15_connect_xpdrc __ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8b465c0> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_16_connect_xpdrc_n1_to_roadmc_pp1 _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8f0a8e0> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_17_connect_roadmc_pp1_to_xpdrc_n1 _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8f0a480> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_18_check_tapi_topology_T100G _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8f5f100> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_19_check_tapi_topology_T0 _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8f0a480> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_20_connect_spdr_sa1 _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90cb5e3060> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_21_connect_spdr_sc1 _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8f0a8e0> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_22_check_tapi_topology_T100G _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90cb5e3060> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_23_check_tapi_topology_T0 _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8b45bc0> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_24_connect_sprda_n1_to_roadma_pp2 _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8f0a8e0> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_25_connect_roadma_pp2_to_spdra_n1 _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8b45bc0> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_26_connect_sprdc_n1_to_roadmc_pp2 _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8b44d60> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_27_connect_roadmc_pp2_to_spdrc_n1 _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8f0a8e0> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_28_check_tapi_topology_T100G _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8b447c0> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_29_check_tapi_topology_T0 _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8b46ac0> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_30_add_oms_attributes _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8f0a8e0> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_31_create_OCH_OTU4_service _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8b45300> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_32_check_tapi_topology_T0 _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8b46ac0> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_33_create_ODU4_service _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8f0a8e0> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_34_check_tapi_topology_T0 _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8b45a80> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_35_connect_sprda_2_n2_to_roadma_pp3 _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8b46fc0> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_36_connect_roadma_pp3_to_spdra_2_n2 _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8f0a8e0> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_37_check_tapi_topology_T0 _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8b45e40> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_38_delete_ODU4_service _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8f0a8e0> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_39_delete_OCH_OTU4_service _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8b46020> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_40_check_tapi_topology_T0 _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8b46340> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_41_disconnect_xponders_from_roadm _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8f0a8e0> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_42_check_tapi_topology_T0 _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8b46340> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_43_get_tapi_topology_T100G _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8b47240> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_44_disconnect_roadma _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8f0a8e0> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_45_disconnect_roadmc _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8b47420> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_46_check_tapi_topos _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8b47560> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_47_disconnect_xpdra _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8f0a8e0> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_48_disconnect_xpdrc _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8b463e0> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_49_disconnect_spdr_sa1 _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8b45a80> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_50_disconnect_spdr_sc1 _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8f0a8e0> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 _ ERROR at setup of TestTransportPCEAbstractedTopology.test_51_check_uninstall_Tapi_Feature _ 05:11:40 05:11:40 cls = 05:11:40 func = . at 0x7f90c8b47060> 05:11:40 when = 'setup' 05:11:40 reraise = (, ) 05:11:40 05:11:40 @classmethod 05:11:40 def from_call( 05:11:40 cls, 05:11:40 func: Callable[[], TResult], 05:11:40 when: Literal["collect", "setup", "call", "teardown"], 05:11:40 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:11:40 ) -> CallInfo[TResult]: 05:11:40 """Call func, wrapping the result in a CallInfo. 05:11:40 05:11:40 :param func: 05:11:40 The function to call. Called without arguments. 05:11:40 :type func: Callable[[], _pytest.runner.TResult] 05:11:40 :param when: 05:11:40 The phase in which the function is called. 05:11:40 :param reraise: 05:11:40 Exception or exceptions that shall propagate if raised by the 05:11:40 function, instead of being wrapped in the CallInfo. 05:11:40 """ 05:11:40 excinfo = None 05:11:40 instant = timing.Instant() 05:11:40 try: 05:11:40 > result: TResult | None = func() 05:11:40 ^^^^^^ 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:361: 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:11:40 lambda: runtest_hook(item=item, **kwds), 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:11:40 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:11:40 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:11:40 yield 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:11:40 return (yield) 05:11:40 ^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:11:40 item.session._setupstate.setup(item) 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:11:40 col.setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:11:40 super().setup() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:11:40 self._request._fillfixtures() 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:11:40 item.funcargs[argname] = self.getfixturevalue(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:11:40 fixturedef = self._get_active_fixturedef(argname) 05:11:40 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:11:40 fixturedef.execute(request=subrequest) 05:11:40 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:11:40 05:11:40 self = 05:11:40 request = > 05:11:40 05:11:40 def execute(self, request: SubRequest) -> FixtureValue: 05:11:40 """Return the value of this fixture, executing it if not cached.""" 05:11:40 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:11:40 # This needs to be done before checking if we have a cached value, since 05:11:40 # if a dependent fixture has their cache invalidated, e.g. due to 05:11:40 # parametrization, they finalize themselves and fixtures depending on it 05:11:40 # (which will likely include this fixture) setting `self.cached_result = None`. 05:11:40 # See #4871 05:11:40 requested_fixtures_that_should_finalize_us = [] 05:11:40 for argname in self.argnames: 05:11:40 fixturedef = request._get_active_fixturedef(argname) 05:11:40 # Saves requested fixtures in a list so we later can add our finalizer 05:11:40 # to them, ensuring that if a requested fixture gets torn down we get torn 05:11:40 # down first. This is generally handled by SetupState, but still currently 05:11:40 # needed when this fixture is not parametrized but depends on a parametrized 05:11:40 # fixture. 05:11:40 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:11:40 05:11:40 # Check for (and return) cached value/exception. 05:11:40 if self.cached_result is not None: 05:11:40 request_cache_key = self.cache_key(request) 05:11:40 cache_key = self.cached_result[1] 05:11:40 try: 05:11:40 # Attempt to make a normal == check: this might fail for objects 05:11:40 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:11:40 cache_hit = bool(request_cache_key == cache_key) 05:11:40 except (ValueError, RuntimeError): 05:11:40 # If the comparison raises, use 'is' as fallback. 05:11:40 cache_hit = request_cache_key is cache_key 05:11:40 05:11:40 if cache_hit: 05:11:40 if self.cached_result[2] is not None: 05:11:40 exc, exc_tb = self.cached_result[2] 05:11:40 raise exc.with_traceback(exc_tb) 05:11:40 else: 05:11:40 return self.cached_result[0] 05:11:40 # We have a previous but differently parametrized fixture instance 05:11:40 # so we need to tear it down before creating a new one. 05:11:40 self.finish(request) 05:11:40 assert self.cached_result is None 05:11:40 05:11:40 # Add finalizer to requested fixtures we saved previously. 05:11:40 # We make sure to do this after checking for cached value to avoid 05:11:40 # adding our finalizer multiple times. (#12135) 05:11:40 finalizer = functools.partial(self.finish, request=request) 05:11:40 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:11:40 parent_fixture.addfinalizer(finalizer) 05:11:40 05:11:40 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:11:40 # which is executed last. 05:11:40 > assert not self._finalizers 05:11:40 ^^^^^^^^^^^^^^^^^^^^ 05:11:40 E AssertionError 05:11:40 05:11:40 ../.tox/tests_tapi/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:11:40 =========================== short test summary info ============================ 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_01_get_tapi_topology_T100G 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_02_get_tapi_topology_T0 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_03_connect_rdmb 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_04_check_tapi_topos 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_05_disconnect_roadmb 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_06_connect_xpdra 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_07_check_tapi_topos 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_08_connect_rdma 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_09_connect_rdmc 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_10_check_tapi_topos 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_11_connect_xpdra_n1_to_roadma_pp1 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_12_connect_roadma_pp1_to_xpdra_n1 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_13_check_tapi_topology_T100G 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_14_check_tapi_topology_T0 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_15_connect_xpdrc 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_16_connect_xpdrc_n1_to_roadmc_pp1 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_17_connect_roadmc_pp1_to_xpdrc_n1 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_18_check_tapi_topology_T100G 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_19_check_tapi_topology_T0 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_20_connect_spdr_sa1 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_21_connect_spdr_sc1 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_22_check_tapi_topology_T100G 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_23_check_tapi_topology_T0 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_24_connect_sprda_n1_to_roadma_pp2 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_25_connect_roadma_pp2_to_spdra_n1 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_26_connect_sprdc_n1_to_roadmc_pp2 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_27_connect_roadmc_pp2_to_spdrc_n1 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_28_check_tapi_topology_T100G 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_29_check_tapi_topology_T0 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_30_add_oms_attributes 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_31_create_OCH_OTU4_service 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_32_check_tapi_topology_T0 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_33_create_ODU4_service 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_34_check_tapi_topology_T0 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_35_connect_sprda_2_n2_to_roadma_pp3 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_36_connect_roadma_pp3_to_spdra_2_n2 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_37_check_tapi_topology_T0 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_38_delete_ODU4_service 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_39_delete_OCH_OTU4_service 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_40_check_tapi_topology_T0 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_41_disconnect_xponders_from_roadm 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_42_check_tapi_topology_T0 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_43_get_tapi_topology_T100G 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_44_disconnect_roadma 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_45_disconnect_roadmc 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_46_check_tapi_topos 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_47_disconnect_xpdra 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_48_disconnect_xpdrc 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_49_disconnect_spdr_sa1 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_50_disconnect_spdr_sc1 05:11:40 ERROR transportpce_tests/tapi/test01_abstracted_topology.py::TestTransportPCEAbstractedTopology::test_51_check_uninstall_Tapi_Feature 05:11:40 51 errors in 109.71s (0:01:49) 05:11:40 tests_tapi: exit 1 (110.01 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh tapi pid=5127 05:11:40 tests_tapi: FAIL ✖ in 1 minute 58.45 seconds 05:11:40 tests221: install_deps> python -I -m pip install 'setuptools>=7.0' -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/requirements.txt -r /w/workspace/transportpce-tox-verify-transportpce-master/tests/test-requirements.txt 05:11:41 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 05:11:48 tests200: freeze> python -m pip freeze --all 05:11:49 tests221: freeze> python -m pip freeze --all 05:11:49 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.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 05:11:49 tests200: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 05:11:49 using environment variables from ./karafoc200.env 05:11:49 pytest -q transportpce_tests/oc200/test01_portmapping.py 05:11:49 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.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 05:11:49 tests221: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 05:11:49 using environment variables from ./karaf221.env 05:11:49 pytest -q transportpce_tests/2.2.1/test01_portmapping.py 05:13:29 EEEEEEEEEEEEEEEEEEE [100%] 05:13:31 ==================================== ERRORS ==================================== 05:13:31 __ ERROR at setup of TestTransportPCEPortmapping.test_01_meta_data_insertion ___ 05:13:31 05:13:31 cls = 05:13:31 05:13:31 @classmethod 05:13:31 def setUpClass(cls): 05:13:31 > cls.processes = test_utils.start_tpce() 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 05:13:31 transportpce_tests/oc200/test01_portmapping.py:29: 05:13:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:31 05:13:31 def start_tpce(): 05:13:31 if 'NO_ODL_STARTUP' in os.environ: 05:13:31 print('No OpenDaylight instance to start!') 05:13:31 return [] 05:13:31 print('starting OpenDaylight...') 05:13:31 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 05:13:31 process = start_lighty() 05:13:31 else: 05:13:31 process = start_karaf() 05:13:31 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 05:13:31 print('OpenDaylight started !') 05:13:31 else: 05:13:31 print('OpenDaylight failed to start !') 05:13:31 shutdown_process(process) 05:13:31 for pid in process_list: 05:13:31 shutdown_process(pid) 05:13:31 > sys.exit(1) 05:13:31 E SystemExit: 1 05:13:31 05:13:31 transportpce_tests/common/test_utils.py:234: SystemExit 05:13:31 ---------------------------- Captured stdout setup ----------------------------- 05:13:31 starting OpenDaylight... 05:13:31 starting KARAF (karafoc200) TransportPCE build... 05:13:31 Pattern not found after 100 seconds! OpenDaylight failed to start ! 05:13:31 _ ERROR at setup of TestTransportPCEPortmapping.test_02_catalog_input_insertion _ 05:13:31 05:13:31 cls = 05:13:31 func = . at 0x7fae1bd8b420> 05:13:31 when = 'setup' 05:13:31 reraise = (, ) 05:13:31 05:13:31 @classmethod 05:13:31 def from_call( 05:13:31 cls, 05:13:31 func: Callable[[], TResult], 05:13:31 when: Literal["collect", "setup", "call", "teardown"], 05:13:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:31 ) -> CallInfo[TResult]: 05:13:31 """Call func, wrapping the result in a CallInfo. 05:13:31 05:13:31 :param func: 05:13:31 The function to call. Called without arguments. 05:13:31 :type func: Callable[[], _pytest.runner.TResult] 05:13:31 :param when: 05:13:31 The phase in which the function is called. 05:13:31 :param reraise: 05:13:31 Exception or exceptions that shall propagate if raised by the 05:13:31 function, instead of being wrapped in the CallInfo. 05:13:31 """ 05:13:31 excinfo = None 05:13:31 instant = timing.Instant() 05:13:31 try: 05:13:31 > result: TResult | None = func() 05:13:31 ^^^^^^ 05:13:31 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:31 lambda: runtest_hook(item=item, **kwds), 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:31 yield 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:31 return (yield) 05:13:31 ^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:31 item.session._setupstate.setup(item) 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:31 col.setup() 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:31 super().setup() 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:31 self._request._fillfixtures() 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:31 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:31 fixturedef = self._get_active_fixturedef(argname) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:31 fixturedef.execute(request=subrequest) 05:13:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:31 05:13:31 self = 05:13:31 request = > 05:13:31 05:13:31 def execute(self, request: SubRequest) -> FixtureValue: 05:13:31 """Return the value of this fixture, executing it if not cached.""" 05:13:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:31 # This needs to be done before checking if we have a cached value, since 05:13:31 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:31 # parametrization, they finalize themselves and fixtures depending on it 05:13:31 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:31 # See #4871 05:13:31 requested_fixtures_that_should_finalize_us = [] 05:13:31 for argname in self.argnames: 05:13:31 fixturedef = request._get_active_fixturedef(argname) 05:13:31 # Saves requested fixtures in a list so we later can add our finalizer 05:13:31 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:31 # down first. This is generally handled by SetupState, but still currently 05:13:31 # needed when this fixture is not parametrized but depends on a parametrized 05:13:31 # fixture. 05:13:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:31 05:13:31 # Check for (and return) cached value/exception. 05:13:31 if self.cached_result is not None: 05:13:31 request_cache_key = self.cache_key(request) 05:13:31 cache_key = self.cached_result[1] 05:13:31 try: 05:13:31 # Attempt to make a normal == check: this might fail for objects 05:13:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:31 cache_hit = bool(request_cache_key == cache_key) 05:13:31 except (ValueError, RuntimeError): 05:13:31 # If the comparison raises, use 'is' as fallback. 05:13:31 cache_hit = request_cache_key is cache_key 05:13:31 05:13:31 if cache_hit: 05:13:31 if self.cached_result[2] is not None: 05:13:31 exc, exc_tb = self.cached_result[2] 05:13:31 raise exc.with_traceback(exc_tb) 05:13:31 else: 05:13:31 return self.cached_result[0] 05:13:31 # We have a previous but differently parametrized fixture instance 05:13:31 # so we need to tear it down before creating a new one. 05:13:31 self.finish(request) 05:13:31 assert self.cached_result is None 05:13:31 05:13:31 # Add finalizer to requested fixtures we saved previously. 05:13:31 # We make sure to do this after checking for cached value to avoid 05:13:31 # adding our finalizer multiple times. (#12135) 05:13:31 finalizer = functools.partial(self.finish, request=request) 05:13:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:31 parent_fixture.addfinalizer(finalizer) 05:13:31 05:13:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:31 # which is executed last. 05:13:31 > assert not self._finalizers 05:13:31 ^^^^^^^^^^^^^^^^^^^^ 05:13:31 E AssertionError 05:13:31 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:31 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_device_connection _ 05:13:31 05:13:31 cls = 05:13:31 func = . at 0x7fae19697ec0> 05:13:31 when = 'setup' 05:13:31 reraise = (, ) 05:13:31 05:13:31 @classmethod 05:13:31 def from_call( 05:13:31 cls, 05:13:31 func: Callable[[], TResult], 05:13:31 when: Literal["collect", "setup", "call", "teardown"], 05:13:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:31 ) -> CallInfo[TResult]: 05:13:31 """Call func, wrapping the result in a CallInfo. 05:13:31 05:13:31 :param func: 05:13:31 The function to call. Called without arguments. 05:13:31 :type func: Callable[[], _pytest.runner.TResult] 05:13:31 :param when: 05:13:31 The phase in which the function is called. 05:13:31 :param reraise: 05:13:31 Exception or exceptions that shall propagate if raised by the 05:13:31 function, instead of being wrapped in the CallInfo. 05:13:31 """ 05:13:31 excinfo = None 05:13:31 instant = timing.Instant() 05:13:31 try: 05:13:31 > result: TResult | None = func() 05:13:31 ^^^^^^ 05:13:31 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:31 lambda: runtest_hook(item=item, **kwds), 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:31 yield 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:31 return (yield) 05:13:31 ^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:31 item.session._setupstate.setup(item) 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:31 col.setup() 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:31 super().setup() 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:31 self._request._fillfixtures() 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:31 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:31 fixturedef = self._get_active_fixturedef(argname) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:31 fixturedef.execute(request=subrequest) 05:13:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:31 05:13:31 self = 05:13:31 request = > 05:13:31 05:13:31 def execute(self, request: SubRequest) -> FixtureValue: 05:13:31 """Return the value of this fixture, executing it if not cached.""" 05:13:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:31 # This needs to be done before checking if we have a cached value, since 05:13:31 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:31 # parametrization, they finalize themselves and fixtures depending on it 05:13:31 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:31 # See #4871 05:13:31 requested_fixtures_that_should_finalize_us = [] 05:13:31 for argname in self.argnames: 05:13:31 fixturedef = request._get_active_fixturedef(argname) 05:13:31 # Saves requested fixtures in a list so we later can add our finalizer 05:13:31 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:31 # down first. This is generally handled by SetupState, but still currently 05:13:31 # needed when this fixture is not parametrized but depends on a parametrized 05:13:31 # fixture. 05:13:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:31 05:13:31 # Check for (and return) cached value/exception. 05:13:31 if self.cached_result is not None: 05:13:31 request_cache_key = self.cache_key(request) 05:13:31 cache_key = self.cached_result[1] 05:13:31 try: 05:13:31 # Attempt to make a normal == check: this might fail for objects 05:13:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:31 cache_hit = bool(request_cache_key == cache_key) 05:13:31 except (ValueError, RuntimeError): 05:13:31 # If the comparison raises, use 'is' as fallback. 05:13:31 cache_hit = request_cache_key is cache_key 05:13:31 05:13:31 if cache_hit: 05:13:31 if self.cached_result[2] is not None: 05:13:31 exc, exc_tb = self.cached_result[2] 05:13:31 raise exc.with_traceback(exc_tb) 05:13:31 else: 05:13:31 return self.cached_result[0] 05:13:31 # We have a previous but differently parametrized fixture instance 05:13:31 # so we need to tear it down before creating a new one. 05:13:31 self.finish(request) 05:13:31 assert self.cached_result is None 05:13:31 05:13:31 # Add finalizer to requested fixtures we saved previously. 05:13:31 # We make sure to do this after checking for cached value to avoid 05:13:31 # adding our finalizer multiple times. (#12135) 05:13:31 finalizer = functools.partial(self.finish, request=request) 05:13:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:31 parent_fixture.addfinalizer(finalizer) 05:13:31 05:13:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:31 # which is executed last. 05:13:31 > assert not self._finalizers 05:13:31 ^^^^^^^^^^^^^^^^^^^^ 05:13:31 E AssertionError 05:13:31 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:31 _ ERROR at setup of TestTransportPCEPortmapping.test_04_xpdr_device_connected __ 05:13:31 05:13:31 cls = 05:13:31 func = . at 0x7fae1ae3f600> 05:13:31 when = 'setup' 05:13:31 reraise = (, ) 05:13:31 05:13:31 @classmethod 05:13:31 def from_call( 05:13:31 cls, 05:13:31 func: Callable[[], TResult], 05:13:31 when: Literal["collect", "setup", "call", "teardown"], 05:13:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:31 ) -> CallInfo[TResult]: 05:13:31 """Call func, wrapping the result in a CallInfo. 05:13:31 05:13:31 :param func: 05:13:31 The function to call. Called without arguments. 05:13:31 :type func: Callable[[], _pytest.runner.TResult] 05:13:31 :param when: 05:13:31 The phase in which the function is called. 05:13:31 :param reraise: 05:13:31 Exception or exceptions that shall propagate if raised by the 05:13:31 function, instead of being wrapped in the CallInfo. 05:13:31 """ 05:13:31 excinfo = None 05:13:31 instant = timing.Instant() 05:13:31 try: 05:13:31 > result: TResult | None = func() 05:13:31 ^^^^^^ 05:13:31 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:31 lambda: runtest_hook(item=item, **kwds), 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:31 yield 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:31 return (yield) 05:13:31 ^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:31 item.session._setupstate.setup(item) 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:31 col.setup() 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:31 super().setup() 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:31 self._request._fillfixtures() 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:31 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:31 fixturedef = self._get_active_fixturedef(argname) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:31 fixturedef.execute(request=subrequest) 05:13:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:31 05:13:31 self = 05:13:31 request = > 05:13:31 05:13:31 def execute(self, request: SubRequest) -> FixtureValue: 05:13:31 """Return the value of this fixture, executing it if not cached.""" 05:13:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:31 # This needs to be done before checking if we have a cached value, since 05:13:31 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:31 # parametrization, they finalize themselves and fixtures depending on it 05:13:31 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:31 # See #4871 05:13:31 requested_fixtures_that_should_finalize_us = [] 05:13:31 for argname in self.argnames: 05:13:31 fixturedef = request._get_active_fixturedef(argname) 05:13:31 # Saves requested fixtures in a list so we later can add our finalizer 05:13:31 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:31 # down first. This is generally handled by SetupState, but still currently 05:13:31 # needed when this fixture is not parametrized but depends on a parametrized 05:13:31 # fixture. 05:13:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:31 05:13:31 # Check for (and return) cached value/exception. 05:13:31 if self.cached_result is not None: 05:13:31 request_cache_key = self.cache_key(request) 05:13:31 cache_key = self.cached_result[1] 05:13:31 try: 05:13:31 # Attempt to make a normal == check: this might fail for objects 05:13:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:31 cache_hit = bool(request_cache_key == cache_key) 05:13:31 except (ValueError, RuntimeError): 05:13:31 # If the comparison raises, use 'is' as fallback. 05:13:31 cache_hit = request_cache_key is cache_key 05:13:31 05:13:31 if cache_hit: 05:13:31 if self.cached_result[2] is not None: 05:13:31 exc, exc_tb = self.cached_result[2] 05:13:31 raise exc.with_traceback(exc_tb) 05:13:31 else: 05:13:31 return self.cached_result[0] 05:13:31 # We have a previous but differently parametrized fixture instance 05:13:31 # so we need to tear it down before creating a new one. 05:13:31 self.finish(request) 05:13:31 assert self.cached_result is None 05:13:31 05:13:31 # Add finalizer to requested fixtures we saved previously. 05:13:31 # We make sure to do this after checking for cached value to avoid 05:13:31 # adding our finalizer multiple times. (#12135) 05:13:31 finalizer = functools.partial(self.finish, request=request) 05:13:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:31 parent_fixture.addfinalizer(finalizer) 05:13:31 05:13:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:31 # which is executed last. 05:13:31 > assert not self._finalizers 05:13:31 ^^^^^^^^^^^^^^^^^^^^ 05:13:31 E AssertionError 05:13:31 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:31 _ ERROR at setup of TestTransportPCEPortmapping.test_05_xpdr_portmapping_info __ 05:13:31 05:13:31 cls = 05:13:31 func = . at 0x7fae1966f740> 05:13:31 when = 'setup' 05:13:31 reraise = (, ) 05:13:31 05:13:31 @classmethod 05:13:31 def from_call( 05:13:31 cls, 05:13:31 func: Callable[[], TResult], 05:13:31 when: Literal["collect", "setup", "call", "teardown"], 05:13:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:31 ) -> CallInfo[TResult]: 05:13:31 """Call func, wrapping the result in a CallInfo. 05:13:31 05:13:31 :param func: 05:13:31 The function to call. Called without arguments. 05:13:31 :type func: Callable[[], _pytest.runner.TResult] 05:13:31 :param when: 05:13:31 The phase in which the function is called. 05:13:31 :param reraise: 05:13:31 Exception or exceptions that shall propagate if raised by the 05:13:31 function, instead of being wrapped in the CallInfo. 05:13:31 """ 05:13:31 excinfo = None 05:13:31 instant = timing.Instant() 05:13:31 try: 05:13:31 > result: TResult | None = func() 05:13:31 ^^^^^^ 05:13:31 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:31 lambda: runtest_hook(item=item, **kwds), 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:31 yield 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:31 return (yield) 05:13:31 ^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:31 item.session._setupstate.setup(item) 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:31 col.setup() 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:31 super().setup() 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:31 self._request._fillfixtures() 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:31 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:31 fixturedef = self._get_active_fixturedef(argname) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:31 fixturedef.execute(request=subrequest) 05:13:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:31 05:13:31 self = 05:13:31 request = > 05:13:31 05:13:31 def execute(self, request: SubRequest) -> FixtureValue: 05:13:31 """Return the value of this fixture, executing it if not cached.""" 05:13:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:31 # This needs to be done before checking if we have a cached value, since 05:13:31 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:31 # parametrization, they finalize themselves and fixtures depending on it 05:13:31 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:31 # See #4871 05:13:31 requested_fixtures_that_should_finalize_us = [] 05:13:31 for argname in self.argnames: 05:13:31 fixturedef = request._get_active_fixturedef(argname) 05:13:31 # Saves requested fixtures in a list so we later can add our finalizer 05:13:31 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:31 # down first. This is generally handled by SetupState, but still currently 05:13:31 # needed when this fixture is not parametrized but depends on a parametrized 05:13:31 # fixture. 05:13:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:31 05:13:31 # Check for (and return) cached value/exception. 05:13:31 if self.cached_result is not None: 05:13:31 request_cache_key = self.cache_key(request) 05:13:31 cache_key = self.cached_result[1] 05:13:31 try: 05:13:31 # Attempt to make a normal == check: this might fail for objects 05:13:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:31 cache_hit = bool(request_cache_key == cache_key) 05:13:31 except (ValueError, RuntimeError): 05:13:31 # If the comparison raises, use 'is' as fallback. 05:13:31 cache_hit = request_cache_key is cache_key 05:13:31 05:13:31 if cache_hit: 05:13:31 if self.cached_result[2] is not None: 05:13:31 exc, exc_tb = self.cached_result[2] 05:13:31 raise exc.with_traceback(exc_tb) 05:13:31 else: 05:13:31 return self.cached_result[0] 05:13:31 # We have a previous but differently parametrized fixture instance 05:13:31 # so we need to tear it down before creating a new one. 05:13:31 self.finish(request) 05:13:31 assert self.cached_result is None 05:13:31 05:13:31 # Add finalizer to requested fixtures we saved previously. 05:13:31 # We make sure to do this after checking for cached value to avoid 05:13:31 # adding our finalizer multiple times. (#12135) 05:13:31 finalizer = functools.partial(self.finish, request=request) 05:13:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:31 parent_fixture.addfinalizer(finalizer) 05:13:31 05:13:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:31 # which is executed last. 05:13:31 > assert not self._finalizers 05:13:31 ^^^^^^^^^^^^^^^^^^^^ 05:13:31 E AssertionError 05:13:31 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:31 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK5 _ 05:13:31 05:13:31 cls = 05:13:31 func = . at 0x7fae1bd8b420> 05:13:31 when = 'setup' 05:13:31 reraise = (, ) 05:13:31 05:13:31 @classmethod 05:13:31 def from_call( 05:13:31 cls, 05:13:31 func: Callable[[], TResult], 05:13:31 when: Literal["collect", "setup", "call", "teardown"], 05:13:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:31 ) -> CallInfo[TResult]: 05:13:31 """Call func, wrapping the result in a CallInfo. 05:13:31 05:13:31 :param func: 05:13:31 The function to call. Called without arguments. 05:13:31 :type func: Callable[[], _pytest.runner.TResult] 05:13:31 :param when: 05:13:31 The phase in which the function is called. 05:13:31 :param reraise: 05:13:31 Exception or exceptions that shall propagate if raised by the 05:13:31 function, instead of being wrapped in the CallInfo. 05:13:31 """ 05:13:31 excinfo = None 05:13:31 instant = timing.Instant() 05:13:31 try: 05:13:31 > result: TResult | None = func() 05:13:31 ^^^^^^ 05:13:31 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:31 lambda: runtest_hook(item=item, **kwds), 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:31 yield 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:31 return (yield) 05:13:31 ^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:31 item.session._setupstate.setup(item) 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:31 col.setup() 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:31 super().setup() 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:31 self._request._fillfixtures() 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:31 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:31 fixturedef = self._get_active_fixturedef(argname) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:31 fixturedef.execute(request=subrequest) 05:13:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:31 05:13:31 self = 05:13:31 request = > 05:13:31 05:13:31 def execute(self, request: SubRequest) -> FixtureValue: 05:13:31 """Return the value of this fixture, executing it if not cached.""" 05:13:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:31 # This needs to be done before checking if we have a cached value, since 05:13:31 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:31 # parametrization, they finalize themselves and fixtures depending on it 05:13:31 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:31 # See #4871 05:13:31 requested_fixtures_that_should_finalize_us = [] 05:13:31 for argname in self.argnames: 05:13:31 fixturedef = request._get_active_fixturedef(argname) 05:13:31 # Saves requested fixtures in a list so we later can add our finalizer 05:13:31 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:31 # down first. This is generally handled by SetupState, but still currently 05:13:31 # needed when this fixture is not parametrized but depends on a parametrized 05:13:31 # fixture. 05:13:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:31 05:13:31 # Check for (and return) cached value/exception. 05:13:31 if self.cached_result is not None: 05:13:31 request_cache_key = self.cache_key(request) 05:13:31 cache_key = self.cached_result[1] 05:13:31 try: 05:13:31 # Attempt to make a normal == check: this might fail for objects 05:13:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:31 cache_hit = bool(request_cache_key == cache_key) 05:13:31 except (ValueError, RuntimeError): 05:13:31 # If the comparison raises, use 'is' as fallback. 05:13:31 cache_hit = request_cache_key is cache_key 05:13:31 05:13:31 if cache_hit: 05:13:31 if self.cached_result[2] is not None: 05:13:31 exc, exc_tb = self.cached_result[2] 05:13:31 raise exc.with_traceback(exc_tb) 05:13:31 else: 05:13:31 return self.cached_result[0] 05:13:31 # We have a previous but differently parametrized fixture instance 05:13:31 # so we need to tear it down before creating a new one. 05:13:31 self.finish(request) 05:13:31 assert self.cached_result is None 05:13:31 05:13:31 # Add finalizer to requested fixtures we saved previously. 05:13:31 # We make sure to do this after checking for cached value to avoid 05:13:31 # adding our finalizer multiple times. (#12135) 05:13:31 finalizer = functools.partial(self.finish, request=request) 05:13:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:31 parent_fixture.addfinalizer(finalizer) 05:13:31 05:13:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:31 # which is executed last. 05:13:31 > assert not self._finalizers 05:13:31 ^^^^^^^^^^^^^^^^^^^^ 05:13:31 E AssertionError 05:13:31 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:31 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 05:13:31 05:13:31 cls = 05:13:31 func = . at 0x7fae1ae3f600> 05:13:31 when = 'setup' 05:13:31 reraise = (, ) 05:13:31 05:13:31 @classmethod 05:13:31 def from_call( 05:13:31 cls, 05:13:31 func: Callable[[], TResult], 05:13:31 when: Literal["collect", "setup", "call", "teardown"], 05:13:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:31 ) -> CallInfo[TResult]: 05:13:31 """Call func, wrapping the result in a CallInfo. 05:13:31 05:13:31 :param func: 05:13:31 The function to call. Called without arguments. 05:13:31 :type func: Callable[[], _pytest.runner.TResult] 05:13:31 :param when: 05:13:31 The phase in which the function is called. 05:13:31 :param reraise: 05:13:31 Exception or exceptions that shall propagate if raised by the 05:13:31 function, instead of being wrapped in the CallInfo. 05:13:31 """ 05:13:31 excinfo = None 05:13:31 instant = timing.Instant() 05:13:31 try: 05:13:31 > result: TResult | None = func() 05:13:31 ^^^^^^ 05:13:31 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:31 lambda: runtest_hook(item=item, **kwds), 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:31 yield 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:31 return (yield) 05:13:31 ^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:31 item.session._setupstate.setup(item) 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:31 col.setup() 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:31 super().setup() 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:31 self._request._fillfixtures() 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:31 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:31 fixturedef = self._get_active_fixturedef(argname) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:31 fixturedef.execute(request=subrequest) 05:13:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:31 05:13:31 self = 05:13:31 request = > 05:13:31 05:13:31 def execute(self, request: SubRequest) -> FixtureValue: 05:13:31 """Return the value of this fixture, executing it if not cached.""" 05:13:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:31 # This needs to be done before checking if we have a cached value, since 05:13:31 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:31 # parametrization, they finalize themselves and fixtures depending on it 05:13:31 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:31 # See #4871 05:13:31 requested_fixtures_that_should_finalize_us = [] 05:13:31 for argname in self.argnames: 05:13:31 fixturedef = request._get_active_fixturedef(argname) 05:13:31 # Saves requested fixtures in a list so we later can add our finalizer 05:13:31 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:31 # down first. This is generally handled by SetupState, but still currently 05:13:31 # needed when this fixture is not parametrized but depends on a parametrized 05:13:31 # fixture. 05:13:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:31 05:13:31 # Check for (and return) cached value/exception. 05:13:31 if self.cached_result is not None: 05:13:31 request_cache_key = self.cache_key(request) 05:13:31 cache_key = self.cached_result[1] 05:13:31 try: 05:13:31 # Attempt to make a normal == check: this might fail for objects 05:13:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:31 cache_hit = bool(request_cache_key == cache_key) 05:13:31 except (ValueError, RuntimeError): 05:13:31 # If the comparison raises, use 'is' as fallback. 05:13:31 cache_hit = request_cache_key is cache_key 05:13:31 05:13:31 if cache_hit: 05:13:31 if self.cached_result[2] is not None: 05:13:31 exc, exc_tb = self.cached_result[2] 05:13:31 raise exc.with_traceback(exc_tb) 05:13:31 else: 05:13:31 return self.cached_result[0] 05:13:31 # We have a previous but differently parametrized fixture instance 05:13:31 # so we need to tear it down before creating a new one. 05:13:31 self.finish(request) 05:13:31 assert self.cached_result is None 05:13:31 05:13:31 # Add finalizer to requested fixtures we saved previously. 05:13:31 # We make sure to do this after checking for cached value to avoid 05:13:31 # adding our finalizer multiple times. (#12135) 05:13:31 finalizer = functools.partial(self.finish, request=request) 05:13:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:31 parent_fixture.addfinalizer(finalizer) 05:13:31 05:13:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:31 # which is executed last. 05:13:31 > assert not self._finalizers 05:13:31 ^^^^^^^^^^^^^^^^^^^^ 05:13:31 E AssertionError 05:13:31 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:31 __ ERROR at setup of TestTransportPCEPortmapping.test_08_mpdr_switching_pool ___ 05:13:31 05:13:31 cls = 05:13:31 func = . at 0x7fae19697880> 05:13:31 when = 'setup' 05:13:31 reraise = (, ) 05:13:31 05:13:31 @classmethod 05:13:31 def from_call( 05:13:31 cls, 05:13:31 func: Callable[[], TResult], 05:13:31 when: Literal["collect", "setup", "call", "teardown"], 05:13:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:31 ) -> CallInfo[TResult]: 05:13:31 """Call func, wrapping the result in a CallInfo. 05:13:31 05:13:31 :param func: 05:13:31 The function to call. Called without arguments. 05:13:31 :type func: Callable[[], _pytest.runner.TResult] 05:13:31 :param when: 05:13:31 The phase in which the function is called. 05:13:31 :param reraise: 05:13:31 Exception or exceptions that shall propagate if raised by the 05:13:31 function, instead of being wrapped in the CallInfo. 05:13:31 """ 05:13:31 excinfo = None 05:13:31 instant = timing.Instant() 05:13:31 try: 05:13:31 > result: TResult | None = func() 05:13:31 ^^^^^^ 05:13:31 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:31 lambda: runtest_hook(item=item, **kwds), 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:31 yield 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:31 return (yield) 05:13:31 ^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:31 item.session._setupstate.setup(item) 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:31 col.setup() 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:31 super().setup() 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:31 self._request._fillfixtures() 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:31 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:31 fixturedef = self._get_active_fixturedef(argname) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:31 fixturedef.execute(request=subrequest) 05:13:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:31 05:13:31 self = 05:13:31 request = > 05:13:31 05:13:31 def execute(self, request: SubRequest) -> FixtureValue: 05:13:31 """Return the value of this fixture, executing it if not cached.""" 05:13:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:31 # This needs to be done before checking if we have a cached value, since 05:13:31 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:31 # parametrization, they finalize themselves and fixtures depending on it 05:13:31 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:31 # See #4871 05:13:31 requested_fixtures_that_should_finalize_us = [] 05:13:31 for argname in self.argnames: 05:13:31 fixturedef = request._get_active_fixturedef(argname) 05:13:31 # Saves requested fixtures in a list so we later can add our finalizer 05:13:31 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:31 # down first. This is generally handled by SetupState, but still currently 05:13:31 # needed when this fixture is not parametrized but depends on a parametrized 05:13:31 # fixture. 05:13:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:31 05:13:31 # Check for (and return) cached value/exception. 05:13:31 if self.cached_result is not None: 05:13:31 request_cache_key = self.cache_key(request) 05:13:31 cache_key = self.cached_result[1] 05:13:31 try: 05:13:31 # Attempt to make a normal == check: this might fail for objects 05:13:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:31 cache_hit = bool(request_cache_key == cache_key) 05:13:31 except (ValueError, RuntimeError): 05:13:31 # If the comparison raises, use 'is' as fallback. 05:13:31 cache_hit = request_cache_key is cache_key 05:13:31 05:13:31 if cache_hit: 05:13:31 if self.cached_result[2] is not None: 05:13:31 exc, exc_tb = self.cached_result[2] 05:13:31 raise exc.with_traceback(exc_tb) 05:13:31 else: 05:13:31 return self.cached_result[0] 05:13:31 # We have a previous but differently parametrized fixture instance 05:13:31 # so we need to tear it down before creating a new one. 05:13:31 self.finish(request) 05:13:31 assert self.cached_result is None 05:13:31 05:13:31 # Add finalizer to requested fixtures we saved previously. 05:13:31 # We make sure to do this after checking for cached value to avoid 05:13:31 # adding our finalizer multiple times. (#12135) 05:13:31 finalizer = functools.partial(self.finish, request=request) 05:13:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:31 parent_fixture.addfinalizer(finalizer) 05:13:31 05:13:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:31 # which is executed last. 05:13:31 > assert not self._finalizers 05:13:31 ^^^^^^^^^^^^^^^^^^^^ 05:13:31 E AssertionError 05:13:31 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:31 ___ ERROR at setup of TestTransportPCEPortmapping.test_09_check_mccapprofile ___ 05:13:31 05:13:31 cls = 05:13:31 func = . at 0x7fae196976a0> 05:13:31 when = 'setup' 05:13:31 reraise = (, ) 05:13:31 05:13:31 @classmethod 05:13:31 def from_call( 05:13:31 cls, 05:13:31 func: Callable[[], TResult], 05:13:31 when: Literal["collect", "setup", "call", "teardown"], 05:13:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:31 ) -> CallInfo[TResult]: 05:13:31 """Call func, wrapping the result in a CallInfo. 05:13:31 05:13:31 :param func: 05:13:31 The function to call. Called without arguments. 05:13:31 :type func: Callable[[], _pytest.runner.TResult] 05:13:31 :param when: 05:13:31 The phase in which the function is called. 05:13:31 :param reraise: 05:13:31 Exception or exceptions that shall propagate if raised by the 05:13:31 function, instead of being wrapped in the CallInfo. 05:13:31 """ 05:13:31 excinfo = None 05:13:31 instant = timing.Instant() 05:13:31 try: 05:13:31 > result: TResult | None = func() 05:13:31 ^^^^^^ 05:13:31 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:31 lambda: runtest_hook(item=item, **kwds), 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:31 yield 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:31 return (yield) 05:13:31 ^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:31 item.session._setupstate.setup(item) 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:31 col.setup() 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:31 super().setup() 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:31 self._request._fillfixtures() 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:31 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:31 fixturedef = self._get_active_fixturedef(argname) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:31 fixturedef.execute(request=subrequest) 05:13:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:31 05:13:31 self = 05:13:31 request = > 05:13:31 05:13:31 def execute(self, request: SubRequest) -> FixtureValue: 05:13:31 """Return the value of this fixture, executing it if not cached.""" 05:13:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:31 # This needs to be done before checking if we have a cached value, since 05:13:31 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:31 # parametrization, they finalize themselves and fixtures depending on it 05:13:31 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:31 # See #4871 05:13:31 requested_fixtures_that_should_finalize_us = [] 05:13:31 for argname in self.argnames: 05:13:31 fixturedef = request._get_active_fixturedef(argname) 05:13:31 # Saves requested fixtures in a list so we later can add our finalizer 05:13:31 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:31 # down first. This is generally handled by SetupState, but still currently 05:13:31 # needed when this fixture is not parametrized but depends on a parametrized 05:13:31 # fixture. 05:13:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:31 05:13:31 # Check for (and return) cached value/exception. 05:13:31 if self.cached_result is not None: 05:13:31 request_cache_key = self.cache_key(request) 05:13:31 cache_key = self.cached_result[1] 05:13:31 try: 05:13:31 # Attempt to make a normal == check: this might fail for objects 05:13:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:31 cache_hit = bool(request_cache_key == cache_key) 05:13:31 except (ValueError, RuntimeError): 05:13:31 # If the comparison raises, use 'is' as fallback. 05:13:31 cache_hit = request_cache_key is cache_key 05:13:31 05:13:31 if cache_hit: 05:13:31 if self.cached_result[2] is not None: 05:13:31 exc, exc_tb = self.cached_result[2] 05:13:31 raise exc.with_traceback(exc_tb) 05:13:31 else: 05:13:31 return self.cached_result[0] 05:13:31 # We have a previous but differently parametrized fixture instance 05:13:31 # so we need to tear it down before creating a new one. 05:13:31 self.finish(request) 05:13:31 assert self.cached_result is None 05:13:31 05:13:31 # Add finalizer to requested fixtures we saved previously. 05:13:31 # We make sure to do this after checking for cached value to avoid 05:13:31 # adding our finalizer multiple times. (#12135) 05:13:31 finalizer = functools.partial(self.finish, request=request) 05:13:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:31 parent_fixture.addfinalizer(finalizer) 05:13:31 05:13:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:31 # which is executed last. 05:13:31 > assert not self._finalizers 05:13:31 ^^^^^^^^^^^^^^^^^^^^ 05:13:31 E AssertionError 05:13:31 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:31 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 05:13:31 05:13:31 cls = 05:13:31 func = . at 0x7fae19697600> 05:13:31 when = 'setup' 05:13:31 reraise = (, ) 05:13:31 05:13:31 @classmethod 05:13:31 def from_call( 05:13:31 cls, 05:13:31 func: Callable[[], TResult], 05:13:31 when: Literal["collect", "setup", "call", "teardown"], 05:13:31 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:31 ) -> CallInfo[TResult]: 05:13:31 """Call func, wrapping the result in a CallInfo. 05:13:31 05:13:31 :param func: 05:13:31 The function to call. Called without arguments. 05:13:31 :type func: Callable[[], _pytest.runner.TResult] 05:13:31 :param when: 05:13:31 The phase in which the function is called. 05:13:31 :param reraise: 05:13:31 Exception or exceptions that shall propagate if raised by the 05:13:31 function, instead of being wrapped in the CallInfo. 05:13:31 """ 05:13:31 excinfo = None 05:13:31 instant = timing.Instant() 05:13:31 try: 05:13:31 > result: TResult | None = func() 05:13:31 ^^^^^^ 05:13:31 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:31 lambda: runtest_hook(item=item, **kwds), 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:31 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:31 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:31 yield 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:31 return (yield) 05:13:31 ^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:31 item.session._setupstate.setup(item) 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:31 col.setup() 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:31 super().setup() 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:31 self._request._fillfixtures() 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:31 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:31 fixturedef = self._get_active_fixturedef(argname) 05:13:31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:31 fixturedef.execute(request=subrequest) 05:13:31 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:31 05:13:31 self = 05:13:31 request = > 05:13:31 05:13:31 def execute(self, request: SubRequest) -> FixtureValue: 05:13:31 """Return the value of this fixture, executing it if not cached.""" 05:13:31 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:31 # This needs to be done before checking if we have a cached value, since 05:13:31 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:31 # parametrization, they finalize themselves and fixtures depending on it 05:13:31 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:31 # See #4871 05:13:31 requested_fixtures_that_should_finalize_us = [] 05:13:31 for argname in self.argnames: 05:13:31 fixturedef = request._get_active_fixturedef(argname) 05:13:31 # Saves requested fixtures in a list so we later can add our finalizer 05:13:31 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:31 # down first. This is generally handled by SetupState, but still currently 05:13:31 # needed when this fixture is not parametrized but depends on a parametrized 05:13:31 # fixture. 05:13:31 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:31 05:13:31 # Check for (and return) cached value/exception. 05:13:31 if self.cached_result is not None: 05:13:31 request_cache_key = self.cache_key(request) 05:13:31 cache_key = self.cached_result[1] 05:13:31 try: 05:13:31 # Attempt to make a normal == check: this might fail for objects 05:13:31 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:31 cache_hit = bool(request_cache_key == cache_key) 05:13:31 except (ValueError, RuntimeError): 05:13:31 # If the comparison raises, use 'is' as fallback. 05:13:31 cache_hit = request_cache_key is cache_key 05:13:31 05:13:31 if cache_hit: 05:13:31 if self.cached_result[2] is not None: 05:13:31 exc, exc_tb = self.cached_result[2] 05:13:31 raise exc.with_traceback(exc_tb) 05:13:31 else: 05:13:31 return self.cached_result[0] 05:13:31 # We have a previous but differently parametrized fixture instance 05:13:31 # so we need to tear it down before creating a new one. 05:13:31 self.finish(request) 05:13:31 assert self.cached_result is None 05:13:31 05:13:31 # Add finalizer to requested fixtures we saved previously. 05:13:31 # We make sure to do this after checking for cached value to avoid 05:13:31 # adding our finalizer multiple times. (#12135) 05:13:31 finalizer = functools.partial(self.finish, request=request) 05:13:31 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:31 parent_fixture.addfinalizer(finalizer) 05:13:31 05:13:31 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:31 # which is executed last. 05:13:31 > assert not self._finalizers 05:13:31 ^^^^^^^^^^^^^^^^^^^^ 05:13:31 E AssertionError 05:13:31 05:13:31 ../.tox/tests200/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:31 =========================== short test summary info ============================ 05:13:31 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_01_meta_data_insertion 05:13:31 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_02_catalog_input_insertion 05:13:31 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_device_connection 05:13:31 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_04_xpdr_device_connected 05:13:31 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_05_xpdr_portmapping_info 05:13:31 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK5 05:13:31 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 05:13:31 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_08_mpdr_switching_pool 05:13:31 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_09_check_mccapprofile 05:13:31 ERROR transportpce_tests/oc200/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 05:13:31 10 errors in 101.94s (0:01:41) 05:13:31 tests200: exit 1 (102.22 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh oc200 pid=5268 05:13:31 Etests200: FAIL ✖ in 1 minute 50.84 seconds 05:13:31 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 05:13:31 EEEEEEEEEEEEEEEEEEEEEEEEE [100%] 05:13:35 ==================================== ERRORS ==================================== 05:13:35 _ ERROR at setup of TestTransportPCEPortmapping.test_01_rdm_device_connection __ 05:13:35 05:13:35 cls = 05:13:35 05:13:35 @classmethod 05:13:35 def setUpClass(cls): 05:13:35 > cls.processes = test_utils.start_tpce() 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 05:13:35 transportpce_tests/2.2.1/test01_portmapping.py:33: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 def start_tpce(): 05:13:35 if 'NO_ODL_STARTUP' in os.environ: 05:13:35 print('No OpenDaylight instance to start!') 05:13:35 return [] 05:13:35 print('starting OpenDaylight...') 05:13:35 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 05:13:35 process = start_lighty() 05:13:35 else: 05:13:35 process = start_karaf() 05:13:35 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 05:13:35 print('OpenDaylight started !') 05:13:35 else: 05:13:35 print('OpenDaylight failed to start !') 05:13:35 shutdown_process(process) 05:13:35 for pid in process_list: 05:13:35 shutdown_process(pid) 05:13:35 > sys.exit(1) 05:13:35 E SystemExit: 1 05:13:35 05:13:35 transportpce_tests/common/test_utils.py:234: SystemExit 05:13:35 ---------------------------- Captured stdout setup ----------------------------- 05:13:35 starting OpenDaylight... 05:13:35 starting KARAF (karaf221) TransportPCE build... 05:13:35 Pattern not found after 100 seconds! OpenDaylight failed to start ! 05:13:35 __ ERROR at setup of TestTransportPCEPortmapping.test_02_rdm_device_connected __ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c203e3100> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:35 yield 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:35 return (yield) 05:13:35 ^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:35 item.session._setupstate.setup(item) 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:35 col.setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:35 super().setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:35 self._request._fillfixtures() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:35 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:35 fixturedef = self._get_active_fixturedef(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:35 fixturedef.execute(request=subrequest) 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 self = 05:13:35 request = > 05:13:35 05:13:35 def execute(self, request: SubRequest) -> FixtureValue: 05:13:35 """Return the value of this fixture, executing it if not cached.""" 05:13:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:35 # This needs to be done before checking if we have a cached value, since 05:13:35 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:35 # parametrization, they finalize themselves and fixtures depending on it 05:13:35 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:35 # See #4871 05:13:35 requested_fixtures_that_should_finalize_us = [] 05:13:35 for argname in self.argnames: 05:13:35 fixturedef = request._get_active_fixturedef(argname) 05:13:35 # Saves requested fixtures in a list so we later can add our finalizer 05:13:35 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:35 # down first. This is generally handled by SetupState, but still currently 05:13:35 # needed when this fixture is not parametrized but depends on a parametrized 05:13:35 # fixture. 05:13:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:35 05:13:35 # Check for (and return) cached value/exception. 05:13:35 if self.cached_result is not None: 05:13:35 request_cache_key = self.cache_key(request) 05:13:35 cache_key = self.cached_result[1] 05:13:35 try: 05:13:35 # Attempt to make a normal == check: this might fail for objects 05:13:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:35 cache_hit = bool(request_cache_key == cache_key) 05:13:35 except (ValueError, RuntimeError): 05:13:35 # If the comparison raises, use 'is' as fallback. 05:13:35 cache_hit = request_cache_key is cache_key 05:13:35 05:13:35 if cache_hit: 05:13:35 if self.cached_result[2] is not None: 05:13:35 exc, exc_tb = self.cached_result[2] 05:13:35 raise exc.with_traceback(exc_tb) 05:13:35 else: 05:13:35 return self.cached_result[0] 05:13:35 # We have a previous but differently parametrized fixture instance 05:13:35 # so we need to tear it down before creating a new one. 05:13:35 self.finish(request) 05:13:35 assert self.cached_result is None 05:13:35 05:13:35 # Add finalizer to requested fixtures we saved previously. 05:13:35 # We make sure to do this after checking for cached value to avoid 05:13:35 # adding our finalizer multiple times. (#12135) 05:13:35 finalizer = functools.partial(self.finish, request=request) 05:13:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:35 parent_fixture.addfinalizer(finalizer) 05:13:35 05:13:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:35 # which is executed last. 05:13:35 > assert not self._finalizers 05:13:35 ^^^^^^^^^^^^^^^^^^^^ 05:13:35 E AssertionError 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:35 __ ERROR at setup of TestTransportPCEPortmapping.test_03_rdm_portmapping_info __ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c203e32e0> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:35 yield 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:35 return (yield) 05:13:35 ^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:35 item.session._setupstate.setup(item) 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:35 col.setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:35 super().setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:35 self._request._fillfixtures() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:35 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:35 fixturedef = self._get_active_fixturedef(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:35 fixturedef.execute(request=subrequest) 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 self = 05:13:35 request = > 05:13:35 05:13:35 def execute(self, request: SubRequest) -> FixtureValue: 05:13:35 """Return the value of this fixture, executing it if not cached.""" 05:13:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:35 # This needs to be done before checking if we have a cached value, since 05:13:35 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:35 # parametrization, they finalize themselves and fixtures depending on it 05:13:35 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:35 # See #4871 05:13:35 requested_fixtures_that_should_finalize_us = [] 05:13:35 for argname in self.argnames: 05:13:35 fixturedef = request._get_active_fixturedef(argname) 05:13:35 # Saves requested fixtures in a list so we later can add our finalizer 05:13:35 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:35 # down first. This is generally handled by SetupState, but still currently 05:13:35 # needed when this fixture is not parametrized but depends on a parametrized 05:13:35 # fixture. 05:13:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:35 05:13:35 # Check for (and return) cached value/exception. 05:13:35 if self.cached_result is not None: 05:13:35 request_cache_key = self.cache_key(request) 05:13:35 cache_key = self.cached_result[1] 05:13:35 try: 05:13:35 # Attempt to make a normal == check: this might fail for objects 05:13:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:35 cache_hit = bool(request_cache_key == cache_key) 05:13:35 except (ValueError, RuntimeError): 05:13:35 # If the comparison raises, use 'is' as fallback. 05:13:35 cache_hit = request_cache_key is cache_key 05:13:35 05:13:35 if cache_hit: 05:13:35 if self.cached_result[2] is not None: 05:13:35 exc, exc_tb = self.cached_result[2] 05:13:35 raise exc.with_traceback(exc_tb) 05:13:35 else: 05:13:35 return self.cached_result[0] 05:13:35 # We have a previous but differently parametrized fixture instance 05:13:35 # so we need to tear it down before creating a new one. 05:13:35 self.finish(request) 05:13:35 assert self.cached_result is None 05:13:35 05:13:35 # Add finalizer to requested fixtures we saved previously. 05:13:35 # We make sure to do this after checking for cached value to avoid 05:13:35 # adding our finalizer multiple times. (#12135) 05:13:35 finalizer = functools.partial(self.finish, request=request) 05:13:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:35 parent_fixture.addfinalizer(finalizer) 05:13:35 05:13:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:35 # which is executed last. 05:13:35 > assert not self._finalizers 05:13:35 ^^^^^^^^^^^^^^^^^^^^ 05:13:35 E AssertionError 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:35 _ ERROR at setup of TestTransportPCEPortmapping.test_04_rdm_portmapping_DEG1_TTP_TXRX _ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c22af7240> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:35 yield 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:35 return (yield) 05:13:35 ^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:35 item.session._setupstate.setup(item) 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:35 col.setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:35 super().setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:35 self._request._fillfixtures() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:35 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:35 fixturedef = self._get_active_fixturedef(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:35 fixturedef.execute(request=subrequest) 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 self = 05:13:35 request = > 05:13:35 05:13:35 def execute(self, request: SubRequest) -> FixtureValue: 05:13:35 """Return the value of this fixture, executing it if not cached.""" 05:13:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:35 # This needs to be done before checking if we have a cached value, since 05:13:35 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:35 # parametrization, they finalize themselves and fixtures depending on it 05:13:35 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:35 # See #4871 05:13:35 requested_fixtures_that_should_finalize_us = [] 05:13:35 for argname in self.argnames: 05:13:35 fixturedef = request._get_active_fixturedef(argname) 05:13:35 # Saves requested fixtures in a list so we later can add our finalizer 05:13:35 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:35 # down first. This is generally handled by SetupState, but still currently 05:13:35 # needed when this fixture is not parametrized but depends on a parametrized 05:13:35 # fixture. 05:13:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:35 05:13:35 # Check for (and return) cached value/exception. 05:13:35 if self.cached_result is not None: 05:13:35 request_cache_key = self.cache_key(request) 05:13:35 cache_key = self.cached_result[1] 05:13:35 try: 05:13:35 # Attempt to make a normal == check: this might fail for objects 05:13:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:35 cache_hit = bool(request_cache_key == cache_key) 05:13:35 except (ValueError, RuntimeError): 05:13:35 # If the comparison raises, use 'is' as fallback. 05:13:35 cache_hit = request_cache_key is cache_key 05:13:35 05:13:35 if cache_hit: 05:13:35 if self.cached_result[2] is not None: 05:13:35 exc, exc_tb = self.cached_result[2] 05:13:35 raise exc.with_traceback(exc_tb) 05:13:35 else: 05:13:35 return self.cached_result[0] 05:13:35 # We have a previous but differently parametrized fixture instance 05:13:35 # so we need to tear it down before creating a new one. 05:13:35 self.finish(request) 05:13:35 assert self.cached_result is None 05:13:35 05:13:35 # Add finalizer to requested fixtures we saved previously. 05:13:35 # We make sure to do this after checking for cached value to avoid 05:13:35 # adding our finalizer multiple times. (#12135) 05:13:35 finalizer = functools.partial(self.finish, request=request) 05:13:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:35 parent_fixture.addfinalizer(finalizer) 05:13:35 05:13:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:35 # which is executed last. 05:13:35 > assert not self._finalizers 05:13:35 ^^^^^^^^^^^^^^^^^^^^ 05:13:35 E AssertionError 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:35 _ ERROR at setup of TestTransportPCEPortmapping.test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms _ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c21d07060> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:35 yield 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:35 return (yield) 05:13:35 ^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:35 item.session._setupstate.setup(item) 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:35 col.setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:35 super().setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:35 self._request._fillfixtures() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:35 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:35 fixturedef = self._get_active_fixturedef(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:35 fixturedef.execute(request=subrequest) 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 self = 05:13:35 request = > 05:13:35 05:13:35 def execute(self, request: SubRequest) -> FixtureValue: 05:13:35 """Return the value of this fixture, executing it if not cached.""" 05:13:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:35 # This needs to be done before checking if we have a cached value, since 05:13:35 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:35 # parametrization, they finalize themselves and fixtures depending on it 05:13:35 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:35 # See #4871 05:13:35 requested_fixtures_that_should_finalize_us = [] 05:13:35 for argname in self.argnames: 05:13:35 fixturedef = request._get_active_fixturedef(argname) 05:13:35 # Saves requested fixtures in a list so we later can add our finalizer 05:13:35 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:35 # down first. This is generally handled by SetupState, but still currently 05:13:35 # needed when this fixture is not parametrized but depends on a parametrized 05:13:35 # fixture. 05:13:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:35 05:13:35 # Check for (and return) cached value/exception. 05:13:35 if self.cached_result is not None: 05:13:35 request_cache_key = self.cache_key(request) 05:13:35 cache_key = self.cached_result[1] 05:13:35 try: 05:13:35 # Attempt to make a normal == check: this might fail for objects 05:13:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:35 cache_hit = bool(request_cache_key == cache_key) 05:13:35 except (ValueError, RuntimeError): 05:13:35 # If the comparison raises, use 'is' as fallback. 05:13:35 cache_hit = request_cache_key is cache_key 05:13:35 05:13:35 if cache_hit: 05:13:35 if self.cached_result[2] is not None: 05:13:35 exc, exc_tb = self.cached_result[2] 05:13:35 raise exc.with_traceback(exc_tb) 05:13:35 else: 05:13:35 return self.cached_result[0] 05:13:35 # We have a previous but differently parametrized fixture instance 05:13:35 # so we need to tear it down before creating a new one. 05:13:35 self.finish(request) 05:13:35 assert self.cached_result is None 05:13:35 05:13:35 # Add finalizer to requested fixtures we saved previously. 05:13:35 # We make sure to do this after checking for cached value to avoid 05:13:35 # adding our finalizer multiple times. (#12135) 05:13:35 finalizer = functools.partial(self.finish, request=request) 05:13:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:35 parent_fixture.addfinalizer(finalizer) 05:13:35 05:13:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:35 # which is executed last. 05:13:35 > assert not self._finalizers 05:13:35 ^^^^^^^^^^^^^^^^^^^^ 05:13:35 E AssertionError 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:35 _ ERROR at setup of TestTransportPCEPortmapping.test_06_rdm_portmapping_SRG1_PP3_TXRX _ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c203e3100> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:35 yield 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:35 return (yield) 05:13:35 ^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:35 item.session._setupstate.setup(item) 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:35 col.setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:35 super().setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:35 self._request._fillfixtures() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:35 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:35 fixturedef = self._get_active_fixturedef(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:35 fixturedef.execute(request=subrequest) 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 self = 05:13:35 request = > 05:13:35 05:13:35 def execute(self, request: SubRequest) -> FixtureValue: 05:13:35 """Return the value of this fixture, executing it if not cached.""" 05:13:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:35 # This needs to be done before checking if we have a cached value, since 05:13:35 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:35 # parametrization, they finalize themselves and fixtures depending on it 05:13:35 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:35 # See #4871 05:13:35 requested_fixtures_that_should_finalize_us = [] 05:13:35 for argname in self.argnames: 05:13:35 fixturedef = request._get_active_fixturedef(argname) 05:13:35 # Saves requested fixtures in a list so we later can add our finalizer 05:13:35 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:35 # down first. This is generally handled by SetupState, but still currently 05:13:35 # needed when this fixture is not parametrized but depends on a parametrized 05:13:35 # fixture. 05:13:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:35 05:13:35 # Check for (and return) cached value/exception. 05:13:35 if self.cached_result is not None: 05:13:35 request_cache_key = self.cache_key(request) 05:13:35 cache_key = self.cached_result[1] 05:13:35 try: 05:13:35 # Attempt to make a normal == check: this might fail for objects 05:13:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:35 cache_hit = bool(request_cache_key == cache_key) 05:13:35 except (ValueError, RuntimeError): 05:13:35 # If the comparison raises, use 'is' as fallback. 05:13:35 cache_hit = request_cache_key is cache_key 05:13:35 05:13:35 if cache_hit: 05:13:35 if self.cached_result[2] is not None: 05:13:35 exc, exc_tb = self.cached_result[2] 05:13:35 raise exc.with_traceback(exc_tb) 05:13:35 else: 05:13:35 return self.cached_result[0] 05:13:35 # We have a previous but differently parametrized fixture instance 05:13:35 # so we need to tear it down before creating a new one. 05:13:35 self.finish(request) 05:13:35 assert self.cached_result is None 05:13:35 05:13:35 # Add finalizer to requested fixtures we saved previously. 05:13:35 # We make sure to do this after checking for cached value to avoid 05:13:35 # adding our finalizer multiple times. (#12135) 05:13:35 finalizer = functools.partial(self.finish, request=request) 05:13:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:35 parent_fixture.addfinalizer(finalizer) 05:13:35 05:13:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:35 # which is executed last. 05:13:35 > assert not self._finalizers 05:13:35 ^^^^^^^^^^^^^^^^^^^^ 05:13:35 E AssertionError 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:35 _ ERROR at setup of TestTransportPCEPortmapping.test_07_rdm_portmapping_SRG3_PP1_TXRX _ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c21d07060> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:35 yield 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:35 return (yield) 05:13:35 ^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:35 item.session._setupstate.setup(item) 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:35 col.setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:35 super().setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:35 self._request._fillfixtures() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:35 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:35 fixturedef = self._get_active_fixturedef(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:35 fixturedef.execute(request=subrequest) 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 self = 05:13:35 request = > 05:13:35 05:13:35 def execute(self, request: SubRequest) -> FixtureValue: 05:13:35 """Return the value of this fixture, executing it if not cached.""" 05:13:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:35 # This needs to be done before checking if we have a cached value, since 05:13:35 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:35 # parametrization, they finalize themselves and fixtures depending on it 05:13:35 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:35 # See #4871 05:13:35 requested_fixtures_that_should_finalize_us = [] 05:13:35 for argname in self.argnames: 05:13:35 fixturedef = request._get_active_fixturedef(argname) 05:13:35 # Saves requested fixtures in a list so we later can add our finalizer 05:13:35 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:35 # down first. This is generally handled by SetupState, but still currently 05:13:35 # needed when this fixture is not parametrized but depends on a parametrized 05:13:35 # fixture. 05:13:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:35 05:13:35 # Check for (and return) cached value/exception. 05:13:35 if self.cached_result is not None: 05:13:35 request_cache_key = self.cache_key(request) 05:13:35 cache_key = self.cached_result[1] 05:13:35 try: 05:13:35 # Attempt to make a normal == check: this might fail for objects 05:13:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:35 cache_hit = bool(request_cache_key == cache_key) 05:13:35 except (ValueError, RuntimeError): 05:13:35 # If the comparison raises, use 'is' as fallback. 05:13:35 cache_hit = request_cache_key is cache_key 05:13:35 05:13:35 if cache_hit: 05:13:35 if self.cached_result[2] is not None: 05:13:35 exc, exc_tb = self.cached_result[2] 05:13:35 raise exc.with_traceback(exc_tb) 05:13:35 else: 05:13:35 return self.cached_result[0] 05:13:35 # We have a previous but differently parametrized fixture instance 05:13:35 # so we need to tear it down before creating a new one. 05:13:35 self.finish(request) 05:13:35 assert self.cached_result is None 05:13:35 05:13:35 # Add finalizer to requested fixtures we saved previously. 05:13:35 # We make sure to do this after checking for cached value to avoid 05:13:35 # adding our finalizer multiple times. (#12135) 05:13:35 finalizer = functools.partial(self.finish, request=request) 05:13:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:35 parent_fixture.addfinalizer(finalizer) 05:13:35 05:13:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:35 # which is executed last. 05:13:35 > assert not self._finalizers 05:13:35 ^^^^^^^^^^^^^^^^^^^^ 05:13:35 E AssertionError 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:35 _ ERROR at setup of TestTransportPCEPortmapping.test_08_xpdr_device_connection _ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c203e1120> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:35 yield 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:35 return (yield) 05:13:35 ^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:35 item.session._setupstate.setup(item) 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:35 col.setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:35 super().setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:35 self._request._fillfixtures() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:35 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:35 fixturedef = self._get_active_fixturedef(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:35 fixturedef.execute(request=subrequest) 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 self = 05:13:35 request = > 05:13:35 05:13:35 def execute(self, request: SubRequest) -> FixtureValue: 05:13:35 """Return the value of this fixture, executing it if not cached.""" 05:13:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:35 # This needs to be done before checking if we have a cached value, since 05:13:35 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:35 # parametrization, they finalize themselves and fixtures depending on it 05:13:35 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:35 # See #4871 05:13:35 requested_fixtures_that_should_finalize_us = [] 05:13:35 for argname in self.argnames: 05:13:35 fixturedef = request._get_active_fixturedef(argname) 05:13:35 # Saves requested fixtures in a list so we later can add our finalizer 05:13:35 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:35 # down first. This is generally handled by SetupState, but still currently 05:13:35 # needed when this fixture is not parametrized but depends on a parametrized 05:13:35 # fixture. 05:13:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:35 05:13:35 # Check for (and return) cached value/exception. 05:13:35 if self.cached_result is not None: 05:13:35 request_cache_key = self.cache_key(request) 05:13:35 cache_key = self.cached_result[1] 05:13:35 try: 05:13:35 # Attempt to make a normal == check: this might fail for objects 05:13:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:35 cache_hit = bool(request_cache_key == cache_key) 05:13:35 except (ValueError, RuntimeError): 05:13:35 # If the comparison raises, use 'is' as fallback. 05:13:35 cache_hit = request_cache_key is cache_key 05:13:35 05:13:35 if cache_hit: 05:13:35 if self.cached_result[2] is not None: 05:13:35 exc, exc_tb = self.cached_result[2] 05:13:35 raise exc.with_traceback(exc_tb) 05:13:35 else: 05:13:35 return self.cached_result[0] 05:13:35 # We have a previous but differently parametrized fixture instance 05:13:35 # so we need to tear it down before creating a new one. 05:13:35 self.finish(request) 05:13:35 assert self.cached_result is None 05:13:35 05:13:35 # Add finalizer to requested fixtures we saved previously. 05:13:35 # We make sure to do this after checking for cached value to avoid 05:13:35 # adding our finalizer multiple times. (#12135) 05:13:35 finalizer = functools.partial(self.finish, request=request) 05:13:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:35 parent_fixture.addfinalizer(finalizer) 05:13:35 05:13:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:35 # which is executed last. 05:13:35 > assert not self._finalizers 05:13:35 ^^^^^^^^^^^^^^^^^^^^ 05:13:35 E AssertionError 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:35 _ ERROR at setup of TestTransportPCEPortmapping.test_09_xpdr_device_connected __ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c20426d40> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:35 yield 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:35 return (yield) 05:13:35 ^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:35 item.session._setupstate.setup(item) 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:35 col.setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:35 super().setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:35 self._request._fillfixtures() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:35 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:35 fixturedef = self._get_active_fixturedef(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:35 fixturedef.execute(request=subrequest) 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 self = 05:13:35 request = > 05:13:35 05:13:35 def execute(self, request: SubRequest) -> FixtureValue: 05:13:35 """Return the value of this fixture, executing it if not cached.""" 05:13:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:35 # This needs to be done before checking if we have a cached value, since 05:13:35 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:35 # parametrization, they finalize themselves and fixtures depending on it 05:13:35 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:35 # See #4871 05:13:35 requested_fixtures_that_should_finalize_us = [] 05:13:35 for argname in self.argnames: 05:13:35 fixturedef = request._get_active_fixturedef(argname) 05:13:35 # Saves requested fixtures in a list so we later can add our finalizer 05:13:35 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:35 # down first. This is generally handled by SetupState, but still currently 05:13:35 # needed when this fixture is not parametrized but depends on a parametrized 05:13:35 # fixture. 05:13:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:35 05:13:35 # Check for (and return) cached value/exception. 05:13:35 if self.cached_result is not None: 05:13:35 request_cache_key = self.cache_key(request) 05:13:35 cache_key = self.cached_result[1] 05:13:35 try: 05:13:35 # Attempt to make a normal == check: this might fail for objects 05:13:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:35 cache_hit = bool(request_cache_key == cache_key) 05:13:35 except (ValueError, RuntimeError): 05:13:35 # If the comparison raises, use 'is' as fallback. 05:13:35 cache_hit = request_cache_key is cache_key 05:13:35 05:13:35 if cache_hit: 05:13:35 if self.cached_result[2] is not None: 05:13:35 exc, exc_tb = self.cached_result[2] 05:13:35 raise exc.with_traceback(exc_tb) 05:13:35 else: 05:13:35 return self.cached_result[0] 05:13:35 # We have a previous but differently parametrized fixture instance 05:13:35 # so we need to tear it down before creating a new one. 05:13:35 self.finish(request) 05:13:35 assert self.cached_result is None 05:13:35 05:13:35 # Add finalizer to requested fixtures we saved previously. 05:13:35 # We make sure to do this after checking for cached value to avoid 05:13:35 # adding our finalizer multiple times. (#12135) 05:13:35 finalizer = functools.partial(self.finish, request=request) 05:13:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:35 parent_fixture.addfinalizer(finalizer) 05:13:35 05:13:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:35 # which is executed last. 05:13:35 > assert not self._finalizers 05:13:35 ^^^^^^^^^^^^^^^^^^^^ 05:13:35 E AssertionError 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:35 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_portmapping_info __ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c21d07060> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:35 yield 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:35 return (yield) 05:13:35 ^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:35 item.session._setupstate.setup(item) 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:35 col.setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:35 super().setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:35 self._request._fillfixtures() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:35 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:35 fixturedef = self._get_active_fixturedef(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:35 fixturedef.execute(request=subrequest) 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 self = 05:13:35 request = > 05:13:35 05:13:35 def execute(self, request: SubRequest) -> FixtureValue: 05:13:35 """Return the value of this fixture, executing it if not cached.""" 05:13:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:35 # This needs to be done before checking if we have a cached value, since 05:13:35 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:35 # parametrization, they finalize themselves and fixtures depending on it 05:13:35 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:35 # See #4871 05:13:35 requested_fixtures_that_should_finalize_us = [] 05:13:35 for argname in self.argnames: 05:13:35 fixturedef = request._get_active_fixturedef(argname) 05:13:35 # Saves requested fixtures in a list so we later can add our finalizer 05:13:35 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:35 # down first. This is generally handled by SetupState, but still currently 05:13:35 # needed when this fixture is not parametrized but depends on a parametrized 05:13:35 # fixture. 05:13:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:35 05:13:35 # Check for (and return) cached value/exception. 05:13:35 if self.cached_result is not None: 05:13:35 request_cache_key = self.cache_key(request) 05:13:35 cache_key = self.cached_result[1] 05:13:35 try: 05:13:35 # Attempt to make a normal == check: this might fail for objects 05:13:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:35 cache_hit = bool(request_cache_key == cache_key) 05:13:35 except (ValueError, RuntimeError): 05:13:35 # If the comparison raises, use 'is' as fallback. 05:13:35 cache_hit = request_cache_key is cache_key 05:13:35 05:13:35 if cache_hit: 05:13:35 if self.cached_result[2] is not None: 05:13:35 exc, exc_tb = self.cached_result[2] 05:13:35 raise exc.with_traceback(exc_tb) 05:13:35 else: 05:13:35 return self.cached_result[0] 05:13:35 # We have a previous but differently parametrized fixture instance 05:13:35 # so we need to tear it down before creating a new one. 05:13:35 self.finish(request) 05:13:35 assert self.cached_result is None 05:13:35 05:13:35 # Add finalizer to requested fixtures we saved previously. 05:13:35 # We make sure to do this after checking for cached value to avoid 05:13:35 # adding our finalizer multiple times. (#12135) 05:13:35 finalizer = functools.partial(self.finish, request=request) 05:13:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:35 parent_fixture.addfinalizer(finalizer) 05:13:35 05:13:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:35 # which is executed last. 05:13:35 > assert not self._finalizers 05:13:35 ^^^^^^^^^^^^^^^^^^^^ 05:13:35 E AssertionError 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:35 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_portmapping_NETWORK1 _ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c203e1120> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:35 yield 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:35 return (yield) 05:13:35 ^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:35 item.session._setupstate.setup(item) 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:35 col.setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:35 super().setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:35 self._request._fillfixtures() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:35 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:35 fixturedef = self._get_active_fixturedef(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:35 fixturedef.execute(request=subrequest) 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 self = 05:13:35 request = > 05:13:35 05:13:35 def execute(self, request: SubRequest) -> FixtureValue: 05:13:35 """Return the value of this fixture, executing it if not cached.""" 05:13:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:35 # This needs to be done before checking if we have a cached value, since 05:13:35 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:35 # parametrization, they finalize themselves and fixtures depending on it 05:13:35 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:35 # See #4871 05:13:35 requested_fixtures_that_should_finalize_us = [] 05:13:35 for argname in self.argnames: 05:13:35 fixturedef = request._get_active_fixturedef(argname) 05:13:35 # Saves requested fixtures in a list so we later can add our finalizer 05:13:35 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:35 # down first. This is generally handled by SetupState, but still currently 05:13:35 # needed when this fixture is not parametrized but depends on a parametrized 05:13:35 # fixture. 05:13:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:35 05:13:35 # Check for (and return) cached value/exception. 05:13:35 if self.cached_result is not None: 05:13:35 request_cache_key = self.cache_key(request) 05:13:35 cache_key = self.cached_result[1] 05:13:35 try: 05:13:35 # Attempt to make a normal == check: this might fail for objects 05:13:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:35 cache_hit = bool(request_cache_key == cache_key) 05:13:35 except (ValueError, RuntimeError): 05:13:35 # If the comparison raises, use 'is' as fallback. 05:13:35 cache_hit = request_cache_key is cache_key 05:13:35 05:13:35 if cache_hit: 05:13:35 if self.cached_result[2] is not None: 05:13:35 exc, exc_tb = self.cached_result[2] 05:13:35 raise exc.with_traceback(exc_tb) 05:13:35 else: 05:13:35 return self.cached_result[0] 05:13:35 # We have a previous but differently parametrized fixture instance 05:13:35 # so we need to tear it down before creating a new one. 05:13:35 self.finish(request) 05:13:35 assert self.cached_result is None 05:13:35 05:13:35 # Add finalizer to requested fixtures we saved previously. 05:13:35 # We make sure to do this after checking for cached value to avoid 05:13:35 # adding our finalizer multiple times. (#12135) 05:13:35 finalizer = functools.partial(self.finish, request=request) 05:13:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:35 parent_fixture.addfinalizer(finalizer) 05:13:35 05:13:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:35 # which is executed last. 05:13:35 > assert not self._finalizers 05:13:35 ^^^^^^^^^^^^^^^^^^^^ 05:13:35 E AssertionError 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:35 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_portmapping_XPDR2_NETWORK1 _ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c20427f60> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:35 yield 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:35 return (yield) 05:13:35 ^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:35 item.session._setupstate.setup(item) 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:35 col.setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:35 super().setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:35 self._request._fillfixtures() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:35 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:35 fixturedef = self._get_active_fixturedef(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:35 fixturedef.execute(request=subrequest) 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 self = 05:13:35 request = > 05:13:35 05:13:35 def execute(self, request: SubRequest) -> FixtureValue: 05:13:35 """Return the value of this fixture, executing it if not cached.""" 05:13:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:35 # This needs to be done before checking if we have a cached value, since 05:13:35 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:35 # parametrization, they finalize themselves and fixtures depending on it 05:13:35 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:35 # See #4871 05:13:35 requested_fixtures_that_should_finalize_us = [] 05:13:35 for argname in self.argnames: 05:13:35 fixturedef = request._get_active_fixturedef(argname) 05:13:35 # Saves requested fixtures in a list so we later can add our finalizer 05:13:35 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:35 # down first. This is generally handled by SetupState, but still currently 05:13:35 # needed when this fixture is not parametrized but depends on a parametrized 05:13:35 # fixture. 05:13:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:35 05:13:35 # Check for (and return) cached value/exception. 05:13:35 if self.cached_result is not None: 05:13:35 request_cache_key = self.cache_key(request) 05:13:35 cache_key = self.cached_result[1] 05:13:35 try: 05:13:35 # Attempt to make a normal == check: this might fail for objects 05:13:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:35 cache_hit = bool(request_cache_key == cache_key) 05:13:35 except (ValueError, RuntimeError): 05:13:35 # If the comparison raises, use 'is' as fallback. 05:13:35 cache_hit = request_cache_key is cache_key 05:13:35 05:13:35 if cache_hit: 05:13:35 if self.cached_result[2] is not None: 05:13:35 exc, exc_tb = self.cached_result[2] 05:13:35 raise exc.with_traceback(exc_tb) 05:13:35 else: 05:13:35 return self.cached_result[0] 05:13:35 # We have a previous but differently parametrized fixture instance 05:13:35 # so we need to tear it down before creating a new one. 05:13:35 self.finish(request) 05:13:35 assert self.cached_result is None 05:13:35 05:13:35 # Add finalizer to requested fixtures we saved previously. 05:13:35 # We make sure to do this after checking for cached value to avoid 05:13:35 # adding our finalizer multiple times. (#12135) 05:13:35 finalizer = functools.partial(self.finish, request=request) 05:13:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:35 parent_fixture.addfinalizer(finalizer) 05:13:35 05:13:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:35 # which is executed last. 05:13:35 > assert not self._finalizers 05:13:35 ^^^^^^^^^^^^^^^^^^^^ 05:13:35 E AssertionError 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:35 _ ERROR at setup of TestTransportPCEPortmapping.test_13_xpdr_portmapping_XPDR1_CLIENT1 _ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c21d07060> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:35 yield 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:35 return (yield) 05:13:35 ^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:35 item.session._setupstate.setup(item) 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:35 col.setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:35 super().setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:35 self._request._fillfixtures() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:35 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:35 fixturedef = self._get_active_fixturedef(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:35 fixturedef.execute(request=subrequest) 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 self = 05:13:35 request = > 05:13:35 05:13:35 def execute(self, request: SubRequest) -> FixtureValue: 05:13:35 """Return the value of this fixture, executing it if not cached.""" 05:13:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:35 # This needs to be done before checking if we have a cached value, since 05:13:35 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:35 # parametrization, they finalize themselves and fixtures depending on it 05:13:35 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:35 # See #4871 05:13:35 requested_fixtures_that_should_finalize_us = [] 05:13:35 for argname in self.argnames: 05:13:35 fixturedef = request._get_active_fixturedef(argname) 05:13:35 # Saves requested fixtures in a list so we later can add our finalizer 05:13:35 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:35 # down first. This is generally handled by SetupState, but still currently 05:13:35 # needed when this fixture is not parametrized but depends on a parametrized 05:13:35 # fixture. 05:13:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:35 05:13:35 # Check for (and return) cached value/exception. 05:13:35 if self.cached_result is not None: 05:13:35 request_cache_key = self.cache_key(request) 05:13:35 cache_key = self.cached_result[1] 05:13:35 try: 05:13:35 # Attempt to make a normal == check: this might fail for objects 05:13:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:35 cache_hit = bool(request_cache_key == cache_key) 05:13:35 except (ValueError, RuntimeError): 05:13:35 # If the comparison raises, use 'is' as fallback. 05:13:35 cache_hit = request_cache_key is cache_key 05:13:35 05:13:35 if cache_hit: 05:13:35 if self.cached_result[2] is not None: 05:13:35 exc, exc_tb = self.cached_result[2] 05:13:35 raise exc.with_traceback(exc_tb) 05:13:35 else: 05:13:35 return self.cached_result[0] 05:13:35 # We have a previous but differently parametrized fixture instance 05:13:35 # so we need to tear it down before creating a new one. 05:13:35 self.finish(request) 05:13:35 assert self.cached_result is None 05:13:35 05:13:35 # Add finalizer to requested fixtures we saved previously. 05:13:35 # We make sure to do this after checking for cached value to avoid 05:13:35 # adding our finalizer multiple times. (#12135) 05:13:35 finalizer = functools.partial(self.finish, request=request) 05:13:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:35 parent_fixture.addfinalizer(finalizer) 05:13:35 05:13:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:35 # which is executed last. 05:13:35 > assert not self._finalizers 05:13:35 ^^^^^^^^^^^^^^^^^^^^ 05:13:35 E AssertionError 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:35 _ ERROR at setup of TestTransportPCEPortmapping.test_14_xpdr_portmapping_XPDR1_CLIENT2 _ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c204279c0> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:35 yield 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:35 return (yield) 05:13:35 ^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:35 item.session._setupstate.setup(item) 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:35 col.setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:35 super().setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:35 self._request._fillfixtures() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:35 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:35 fixturedef = self._get_active_fixturedef(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:35 fixturedef.execute(request=subrequest) 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 self = 05:13:35 request = > 05:13:35 05:13:35 def execute(self, request: SubRequest) -> FixtureValue: 05:13:35 """Return the value of this fixture, executing it if not cached.""" 05:13:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:35 # This needs to be done before checking if we have a cached value, since 05:13:35 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:35 # parametrization, they finalize themselves and fixtures depending on it 05:13:35 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:35 # See #4871 05:13:35 requested_fixtures_that_should_finalize_us = [] 05:13:35 for argname in self.argnames: 05:13:35 fixturedef = request._get_active_fixturedef(argname) 05:13:35 # Saves requested fixtures in a list so we later can add our finalizer 05:13:35 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:35 # down first. This is generally handled by SetupState, but still currently 05:13:35 # needed when this fixture is not parametrized but depends on a parametrized 05:13:35 # fixture. 05:13:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:35 05:13:35 # Check for (and return) cached value/exception. 05:13:35 if self.cached_result is not None: 05:13:35 request_cache_key = self.cache_key(request) 05:13:35 cache_key = self.cached_result[1] 05:13:35 try: 05:13:35 # Attempt to make a normal == check: this might fail for objects 05:13:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:35 cache_hit = bool(request_cache_key == cache_key) 05:13:35 except (ValueError, RuntimeError): 05:13:35 # If the comparison raises, use 'is' as fallback. 05:13:35 cache_hit = request_cache_key is cache_key 05:13:35 05:13:35 if cache_hit: 05:13:35 if self.cached_result[2] is not None: 05:13:35 exc, exc_tb = self.cached_result[2] 05:13:35 raise exc.with_traceback(exc_tb) 05:13:35 else: 05:13:35 return self.cached_result[0] 05:13:35 # We have a previous but differently parametrized fixture instance 05:13:35 # so we need to tear it down before creating a new one. 05:13:35 self.finish(request) 05:13:35 assert self.cached_result is None 05:13:35 05:13:35 # Add finalizer to requested fixtures we saved previously. 05:13:35 # We make sure to do this after checking for cached value to avoid 05:13:35 # adding our finalizer multiple times. (#12135) 05:13:35 finalizer = functools.partial(self.finish, request=request) 05:13:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:35 parent_fixture.addfinalizer(finalizer) 05:13:35 05:13:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:35 # which is executed last. 05:13:35 > assert not self._finalizers 05:13:35 ^^^^^^^^^^^^^^^^^^^^ 05:13:35 E AssertionError 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:35 _ ERROR at setup of TestTransportPCEPortmapping.test_15_spdr_device_connection _ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c203e1120> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:35 yield 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:35 return (yield) 05:13:35 ^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:35 item.session._setupstate.setup(item) 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:35 col.setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:35 super().setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:35 self._request._fillfixtures() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:35 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:35 fixturedef = self._get_active_fixturedef(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:35 fixturedef.execute(request=subrequest) 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 self = 05:13:35 request = > 05:13:35 05:13:35 def execute(self, request: SubRequest) -> FixtureValue: 05:13:35 """Return the value of this fixture, executing it if not cached.""" 05:13:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:35 # This needs to be done before checking if we have a cached value, since 05:13:35 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:35 # parametrization, they finalize themselves and fixtures depending on it 05:13:35 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:35 # See #4871 05:13:35 requested_fixtures_that_should_finalize_us = [] 05:13:35 for argname in self.argnames: 05:13:35 fixturedef = request._get_active_fixturedef(argname) 05:13:35 # Saves requested fixtures in a list so we later can add our finalizer 05:13:35 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:35 # down first. This is generally handled by SetupState, but still currently 05:13:35 # needed when this fixture is not parametrized but depends on a parametrized 05:13:35 # fixture. 05:13:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:35 05:13:35 # Check for (and return) cached value/exception. 05:13:35 if self.cached_result is not None: 05:13:35 request_cache_key = self.cache_key(request) 05:13:35 cache_key = self.cached_result[1] 05:13:35 try: 05:13:35 # Attempt to make a normal == check: this might fail for objects 05:13:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:35 cache_hit = bool(request_cache_key == cache_key) 05:13:35 except (ValueError, RuntimeError): 05:13:35 # If the comparison raises, use 'is' as fallback. 05:13:35 cache_hit = request_cache_key is cache_key 05:13:35 05:13:35 if cache_hit: 05:13:35 if self.cached_result[2] is not None: 05:13:35 exc, exc_tb = self.cached_result[2] 05:13:35 raise exc.with_traceback(exc_tb) 05:13:35 else: 05:13:35 return self.cached_result[0] 05:13:35 # We have a previous but differently parametrized fixture instance 05:13:35 # so we need to tear it down before creating a new one. 05:13:35 self.finish(request) 05:13:35 assert self.cached_result is None 05:13:35 05:13:35 # Add finalizer to requested fixtures we saved previously. 05:13:35 # We make sure to do this after checking for cached value to avoid 05:13:35 # adding our finalizer multiple times. (#12135) 05:13:35 finalizer = functools.partial(self.finish, request=request) 05:13:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:35 parent_fixture.addfinalizer(finalizer) 05:13:35 05:13:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:35 # which is executed last. 05:13:35 > assert not self._finalizers 05:13:35 ^^^^^^^^^^^^^^^^^^^^ 05:13:35 E AssertionError 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:35 _ ERROR at setup of TestTransportPCEPortmapping.test_16_spdr_device_connected __ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c21d07060> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:35 yield 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:35 return (yield) 05:13:35 ^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:35 item.session._setupstate.setup(item) 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:35 col.setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:35 super().setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:35 self._request._fillfixtures() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:35 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:35 fixturedef = self._get_active_fixturedef(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:35 fixturedef.execute(request=subrequest) 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 self = 05:13:35 request = > 05:13:35 05:13:35 def execute(self, request: SubRequest) -> FixtureValue: 05:13:35 """Return the value of this fixture, executing it if not cached.""" 05:13:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:35 # This needs to be done before checking if we have a cached value, since 05:13:35 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:35 # parametrization, they finalize themselves and fixtures depending on it 05:13:35 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:35 # See #4871 05:13:35 requested_fixtures_that_should_finalize_us = [] 05:13:35 for argname in self.argnames: 05:13:35 fixturedef = request._get_active_fixturedef(argname) 05:13:35 # Saves requested fixtures in a list so we later can add our finalizer 05:13:35 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:35 # down first. This is generally handled by SetupState, but still currently 05:13:35 # needed when this fixture is not parametrized but depends on a parametrized 05:13:35 # fixture. 05:13:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:35 05:13:35 # Check for (and return) cached value/exception. 05:13:35 if self.cached_result is not None: 05:13:35 request_cache_key = self.cache_key(request) 05:13:35 cache_key = self.cached_result[1] 05:13:35 try: 05:13:35 # Attempt to make a normal == check: this might fail for objects 05:13:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:35 cache_hit = bool(request_cache_key == cache_key) 05:13:35 except (ValueError, RuntimeError): 05:13:35 # If the comparison raises, use 'is' as fallback. 05:13:35 cache_hit = request_cache_key is cache_key 05:13:35 05:13:35 if cache_hit: 05:13:35 if self.cached_result[2] is not None: 05:13:35 exc, exc_tb = self.cached_result[2] 05:13:35 raise exc.with_traceback(exc_tb) 05:13:35 else: 05:13:35 return self.cached_result[0] 05:13:35 # We have a previous but differently parametrized fixture instance 05:13:35 # so we need to tear it down before creating a new one. 05:13:35 self.finish(request) 05:13:35 assert self.cached_result is None 05:13:35 05:13:35 # Add finalizer to requested fixtures we saved previously. 05:13:35 # We make sure to do this after checking for cached value to avoid 05:13:35 # adding our finalizer multiple times. (#12135) 05:13:35 finalizer = functools.partial(self.finish, request=request) 05:13:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:35 parent_fixture.addfinalizer(finalizer) 05:13:35 05:13:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:35 # which is executed last. 05:13:35 > assert not self._finalizers 05:13:35 ^^^^^^^^^^^^^^^^^^^^ 05:13:35 E AssertionError 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:35 _ ERROR at setup of TestTransportPCEPortmapping.test_17_spdr_portmapping_info __ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c20426520> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:35 yield 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:35 return (yield) 05:13:35 ^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:35 item.session._setupstate.setup(item) 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:35 col.setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:35 super().setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:35 self._request._fillfixtures() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:35 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:35 fixturedef = self._get_active_fixturedef(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:35 fixturedef.execute(request=subrequest) 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 self = 05:13:35 request = > 05:13:35 05:13:35 def execute(self, request: SubRequest) -> FixtureValue: 05:13:35 """Return the value of this fixture, executing it if not cached.""" 05:13:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:35 # This needs to be done before checking if we have a cached value, since 05:13:35 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:35 # parametrization, they finalize themselves and fixtures depending on it 05:13:35 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:35 # See #4871 05:13:35 requested_fixtures_that_should_finalize_us = [] 05:13:35 for argname in self.argnames: 05:13:35 fixturedef = request._get_active_fixturedef(argname) 05:13:35 # Saves requested fixtures in a list so we later can add our finalizer 05:13:35 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:35 # down first. This is generally handled by SetupState, but still currently 05:13:35 # needed when this fixture is not parametrized but depends on a parametrized 05:13:35 # fixture. 05:13:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:35 05:13:35 # Check for (and return) cached value/exception. 05:13:35 if self.cached_result is not None: 05:13:35 request_cache_key = self.cache_key(request) 05:13:35 cache_key = self.cached_result[1] 05:13:35 try: 05:13:35 # Attempt to make a normal == check: this might fail for objects 05:13:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:35 cache_hit = bool(request_cache_key == cache_key) 05:13:35 except (ValueError, RuntimeError): 05:13:35 # If the comparison raises, use 'is' as fallback. 05:13:35 cache_hit = request_cache_key is cache_key 05:13:35 05:13:35 if cache_hit: 05:13:35 if self.cached_result[2] is not None: 05:13:35 exc, exc_tb = self.cached_result[2] 05:13:35 raise exc.with_traceback(exc_tb) 05:13:35 else: 05:13:35 return self.cached_result[0] 05:13:35 # We have a previous but differently parametrized fixture instance 05:13:35 # so we need to tear it down before creating a new one. 05:13:35 self.finish(request) 05:13:35 assert self.cached_result is None 05:13:35 05:13:35 # Add finalizer to requested fixtures we saved previously. 05:13:35 # We make sure to do this after checking for cached value to avoid 05:13:35 # adding our finalizer multiple times. (#12135) 05:13:35 finalizer = functools.partial(self.finish, request=request) 05:13:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:35 parent_fixture.addfinalizer(finalizer) 05:13:35 05:13:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:35 # which is executed last. 05:13:35 > assert not self._finalizers 05:13:35 ^^^^^^^^^^^^^^^^^^^^ 05:13:35 E AssertionError 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:35 _ ERROR at setup of TestTransportPCEPortmapping.test_18_spdr_switching_pool_1 __ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c204279c0> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:35 yield 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:35 return (yield) 05:13:35 ^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:35 item.session._setupstate.setup(item) 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:35 col.setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:35 super().setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:35 self._request._fillfixtures() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:35 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:35 fixturedef = self._get_active_fixturedef(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:35 fixturedef.execute(request=subrequest) 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 self = 05:13:35 request = > 05:13:35 05:13:35 def execute(self, request: SubRequest) -> FixtureValue: 05:13:35 """Return the value of this fixture, executing it if not cached.""" 05:13:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:35 # This needs to be done before checking if we have a cached value, since 05:13:35 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:35 # parametrization, they finalize themselves and fixtures depending on it 05:13:35 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:35 # See #4871 05:13:35 requested_fixtures_that_should_finalize_us = [] 05:13:35 for argname in self.argnames: 05:13:35 fixturedef = request._get_active_fixturedef(argname) 05:13:35 # Saves requested fixtures in a list so we later can add our finalizer 05:13:35 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:35 # down first. This is generally handled by SetupState, but still currently 05:13:35 # needed when this fixture is not parametrized but depends on a parametrized 05:13:35 # fixture. 05:13:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:35 05:13:35 # Check for (and return) cached value/exception. 05:13:35 if self.cached_result is not None: 05:13:35 request_cache_key = self.cache_key(request) 05:13:35 cache_key = self.cached_result[1] 05:13:35 try: 05:13:35 # Attempt to make a normal == check: this might fail for objects 05:13:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:35 cache_hit = bool(request_cache_key == cache_key) 05:13:35 except (ValueError, RuntimeError): 05:13:35 # If the comparison raises, use 'is' as fallback. 05:13:35 cache_hit = request_cache_key is cache_key 05:13:35 05:13:35 if cache_hit: 05:13:35 if self.cached_result[2] is not None: 05:13:35 exc, exc_tb = self.cached_result[2] 05:13:35 raise exc.with_traceback(exc_tb) 05:13:35 else: 05:13:35 return self.cached_result[0] 05:13:35 # We have a previous but differently parametrized fixture instance 05:13:35 # so we need to tear it down before creating a new one. 05:13:35 self.finish(request) 05:13:35 assert self.cached_result is None 05:13:35 05:13:35 # Add finalizer to requested fixtures we saved previously. 05:13:35 # We make sure to do this after checking for cached value to avoid 05:13:35 # adding our finalizer multiple times. (#12135) 05:13:35 finalizer = functools.partial(self.finish, request=request) 05:13:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:35 parent_fixture.addfinalizer(finalizer) 05:13:35 05:13:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:35 # which is executed last. 05:13:35 > assert not self._finalizers 05:13:35 ^^^^^^^^^^^^^^^^^^^^ 05:13:35 E AssertionError 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:35 _ ERROR at setup of TestTransportPCEPortmapping.test_19_spdr_switching_pool_2 __ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c20427d80> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:35 yield 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:35 return (yield) 05:13:35 ^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:35 item.session._setupstate.setup(item) 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:35 col.setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:35 super().setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:35 self._request._fillfixtures() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:35 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:35 fixturedef = self._get_active_fixturedef(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:35 fixturedef.execute(request=subrequest) 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 self = 05:13:35 request = > 05:13:35 05:13:35 def execute(self, request: SubRequest) -> FixtureValue: 05:13:35 """Return the value of this fixture, executing it if not cached.""" 05:13:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:35 # This needs to be done before checking if we have a cached value, since 05:13:35 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:35 # parametrization, they finalize themselves and fixtures depending on it 05:13:35 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:35 # See #4871 05:13:35 requested_fixtures_that_should_finalize_us = [] 05:13:35 for argname in self.argnames: 05:13:35 fixturedef = request._get_active_fixturedef(argname) 05:13:35 # Saves requested fixtures in a list so we later can add our finalizer 05:13:35 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:35 # down first. This is generally handled by SetupState, but still currently 05:13:35 # needed when this fixture is not parametrized but depends on a parametrized 05:13:35 # fixture. 05:13:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:35 05:13:35 # Check for (and return) cached value/exception. 05:13:35 if self.cached_result is not None: 05:13:35 request_cache_key = self.cache_key(request) 05:13:35 cache_key = self.cached_result[1] 05:13:35 try: 05:13:35 # Attempt to make a normal == check: this might fail for objects 05:13:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:35 cache_hit = bool(request_cache_key == cache_key) 05:13:35 except (ValueError, RuntimeError): 05:13:35 # If the comparison raises, use 'is' as fallback. 05:13:35 cache_hit = request_cache_key is cache_key 05:13:35 05:13:35 if cache_hit: 05:13:35 if self.cached_result[2] is not None: 05:13:35 exc, exc_tb = self.cached_result[2] 05:13:35 raise exc.with_traceback(exc_tb) 05:13:35 else: 05:13:35 return self.cached_result[0] 05:13:35 # We have a previous but differently parametrized fixture instance 05:13:35 # so we need to tear it down before creating a new one. 05:13:35 self.finish(request) 05:13:35 assert self.cached_result is None 05:13:35 05:13:35 # Add finalizer to requested fixtures we saved previously. 05:13:35 # We make sure to do this after checking for cached value to avoid 05:13:35 # adding our finalizer multiple times. (#12135) 05:13:35 finalizer = functools.partial(self.finish, request=request) 05:13:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:35 parent_fixture.addfinalizer(finalizer) 05:13:35 05:13:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:35 # which is executed last. 05:13:35 > assert not self._finalizers 05:13:35 ^^^^^^^^^^^^^^^^^^^^ 05:13:35 E AssertionError 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:35 _ ERROR at setup of TestTransportPCEPortmapping.test_20_spdr_switching_pool_3 __ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c203e1120> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:35 yield 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:35 return (yield) 05:13:35 ^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:35 item.session._setupstate.setup(item) 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:35 col.setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:35 super().setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:35 self._request._fillfixtures() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:35 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:35 fixturedef = self._get_active_fixturedef(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:35 fixturedef.execute(request=subrequest) 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 self = 05:13:35 request = > 05:13:35 05:13:35 def execute(self, request: SubRequest) -> FixtureValue: 05:13:35 """Return the value of this fixture, executing it if not cached.""" 05:13:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:35 # This needs to be done before checking if we have a cached value, since 05:13:35 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:35 # parametrization, they finalize themselves and fixtures depending on it 05:13:35 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:35 # See #4871 05:13:35 requested_fixtures_that_should_finalize_us = [] 05:13:35 for argname in self.argnames: 05:13:35 fixturedef = request._get_active_fixturedef(argname) 05:13:35 # Saves requested fixtures in a list so we later can add our finalizer 05:13:35 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:35 # down first. This is generally handled by SetupState, but still currently 05:13:35 # needed when this fixture is not parametrized but depends on a parametrized 05:13:35 # fixture. 05:13:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:35 05:13:35 # Check for (and return) cached value/exception. 05:13:35 if self.cached_result is not None: 05:13:35 request_cache_key = self.cache_key(request) 05:13:35 cache_key = self.cached_result[1] 05:13:35 try: 05:13:35 # Attempt to make a normal == check: this might fail for objects 05:13:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:35 cache_hit = bool(request_cache_key == cache_key) 05:13:35 except (ValueError, RuntimeError): 05:13:35 # If the comparison raises, use 'is' as fallback. 05:13:35 cache_hit = request_cache_key is cache_key 05:13:35 05:13:35 if cache_hit: 05:13:35 if self.cached_result[2] is not None: 05:13:35 exc, exc_tb = self.cached_result[2] 05:13:35 raise exc.with_traceback(exc_tb) 05:13:35 else: 05:13:35 return self.cached_result[0] 05:13:35 # We have a previous but differently parametrized fixture instance 05:13:35 # so we need to tear it down before creating a new one. 05:13:35 self.finish(request) 05:13:35 assert self.cached_result is None 05:13:35 05:13:35 # Add finalizer to requested fixtures we saved previously. 05:13:35 # We make sure to do this after checking for cached value to avoid 05:13:35 # adding our finalizer multiple times. (#12135) 05:13:35 finalizer = functools.partial(self.finish, request=request) 05:13:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:35 parent_fixture.addfinalizer(finalizer) 05:13:35 05:13:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:35 # which is executed last. 05:13:35 > assert not self._finalizers 05:13:35 ^^^^^^^^^^^^^^^^^^^^ 05:13:35 E AssertionError 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:35 _ ERROR at setup of TestTransportPCEPortmapping.test_21_spdr_portmapping_mappings _ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c21d07060> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:35 yield 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:35 return (yield) 05:13:35 ^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:35 item.session._setupstate.setup(item) 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:35 col.setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:35 super().setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:35 self._request._fillfixtures() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:35 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:35 fixturedef = self._get_active_fixturedef(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:35 fixturedef.execute(request=subrequest) 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 self = 05:13:35 request = > 05:13:35 05:13:35 def execute(self, request: SubRequest) -> FixtureValue: 05:13:35 """Return the value of this fixture, executing it if not cached.""" 05:13:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:35 # This needs to be done before checking if we have a cached value, since 05:13:35 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:35 # parametrization, they finalize themselves and fixtures depending on it 05:13:35 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:35 # See #4871 05:13:35 requested_fixtures_that_should_finalize_us = [] 05:13:35 for argname in self.argnames: 05:13:35 fixturedef = request._get_active_fixturedef(argname) 05:13:35 # Saves requested fixtures in a list so we later can add our finalizer 05:13:35 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:35 # down first. This is generally handled by SetupState, but still currently 05:13:35 # needed when this fixture is not parametrized but depends on a parametrized 05:13:35 # fixture. 05:13:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:35 05:13:35 # Check for (and return) cached value/exception. 05:13:35 if self.cached_result is not None: 05:13:35 request_cache_key = self.cache_key(request) 05:13:35 cache_key = self.cached_result[1] 05:13:35 try: 05:13:35 # Attempt to make a normal == check: this might fail for objects 05:13:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:35 cache_hit = bool(request_cache_key == cache_key) 05:13:35 except (ValueError, RuntimeError): 05:13:35 # If the comparison raises, use 'is' as fallback. 05:13:35 cache_hit = request_cache_key is cache_key 05:13:35 05:13:35 if cache_hit: 05:13:35 if self.cached_result[2] is not None: 05:13:35 exc, exc_tb = self.cached_result[2] 05:13:35 raise exc.with_traceback(exc_tb) 05:13:35 else: 05:13:35 return self.cached_result[0] 05:13:35 # We have a previous but differently parametrized fixture instance 05:13:35 # so we need to tear it down before creating a new one. 05:13:35 self.finish(request) 05:13:35 assert self.cached_result is None 05:13:35 05:13:35 # Add finalizer to requested fixtures we saved previously. 05:13:35 # We make sure to do this after checking for cached value to avoid 05:13:35 # adding our finalizer multiple times. (#12135) 05:13:35 finalizer = functools.partial(self.finish, request=request) 05:13:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:35 parent_fixture.addfinalizer(finalizer) 05:13:35 05:13:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:35 # which is executed last. 05:13:35 > assert not self._finalizers 05:13:35 ^^^^^^^^^^^^^^^^^^^^ 05:13:35 E AssertionError 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:35 _ ERROR at setup of TestTransportPCEPortmapping.test_22_spdr_portmapping_XPDR1_CLIENT1 _ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c203e20c0> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:35 yield 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:35 return (yield) 05:13:35 ^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:35 item.session._setupstate.setup(item) 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:35 col.setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:35 super().setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:35 self._request._fillfixtures() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:35 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:35 fixturedef = self._get_active_fixturedef(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:35 fixturedef.execute(request=subrequest) 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 self = 05:13:35 request = > 05:13:35 05:13:35 def execute(self, request: SubRequest) -> FixtureValue: 05:13:35 """Return the value of this fixture, executing it if not cached.""" 05:13:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:35 # This needs to be done before checking if we have a cached value, since 05:13:35 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:35 # parametrization, they finalize themselves and fixtures depending on it 05:13:35 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:35 # See #4871 05:13:35 requested_fixtures_that_should_finalize_us = [] 05:13:35 for argname in self.argnames: 05:13:35 fixturedef = request._get_active_fixturedef(argname) 05:13:35 # Saves requested fixtures in a list so we later can add our finalizer 05:13:35 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:35 # down first. This is generally handled by SetupState, but still currently 05:13:35 # needed when this fixture is not parametrized but depends on a parametrized 05:13:35 # fixture. 05:13:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:35 05:13:35 # Check for (and return) cached value/exception. 05:13:35 if self.cached_result is not None: 05:13:35 request_cache_key = self.cache_key(request) 05:13:35 cache_key = self.cached_result[1] 05:13:35 try: 05:13:35 # Attempt to make a normal == check: this might fail for objects 05:13:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:35 cache_hit = bool(request_cache_key == cache_key) 05:13:35 except (ValueError, RuntimeError): 05:13:35 # If the comparison raises, use 'is' as fallback. 05:13:35 cache_hit = request_cache_key is cache_key 05:13:35 05:13:35 if cache_hit: 05:13:35 if self.cached_result[2] is not None: 05:13:35 exc, exc_tb = self.cached_result[2] 05:13:35 raise exc.with_traceback(exc_tb) 05:13:35 else: 05:13:35 return self.cached_result[0] 05:13:35 # We have a previous but differently parametrized fixture instance 05:13:35 # so we need to tear it down before creating a new one. 05:13:35 self.finish(request) 05:13:35 assert self.cached_result is None 05:13:35 05:13:35 # Add finalizer to requested fixtures we saved previously. 05:13:35 # We make sure to do this after checking for cached value to avoid 05:13:35 # adding our finalizer multiple times. (#12135) 05:13:35 finalizer = functools.partial(self.finish, request=request) 05:13:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:35 parent_fixture.addfinalizer(finalizer) 05:13:35 05:13:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:35 # which is executed last. 05:13:35 > assert not self._finalizers 05:13:35 ^^^^^^^^^^^^^^^^^^^^ 05:13:35 E AssertionError 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:35 _ ERROR at setup of TestTransportPCEPortmapping.test_23_spdr_portmapping_XPDR1_NETWORK1 _ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c203e1f80> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:35 yield 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:35 return (yield) 05:13:35 ^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:35 item.session._setupstate.setup(item) 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:35 col.setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:35 super().setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:35 self._request._fillfixtures() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:35 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:35 fixturedef = self._get_active_fixturedef(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:35 fixturedef.execute(request=subrequest) 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 self = 05:13:35 request = > 05:13:35 05:13:35 def execute(self, request: SubRequest) -> FixtureValue: 05:13:35 """Return the value of this fixture, executing it if not cached.""" 05:13:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:35 # This needs to be done before checking if we have a cached value, since 05:13:35 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:35 # parametrization, they finalize themselves and fixtures depending on it 05:13:35 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:35 # See #4871 05:13:35 requested_fixtures_that_should_finalize_us = [] 05:13:35 for argname in self.argnames: 05:13:35 fixturedef = request._get_active_fixturedef(argname) 05:13:35 # Saves requested fixtures in a list so we later can add our finalizer 05:13:35 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:35 # down first. This is generally handled by SetupState, but still currently 05:13:35 # needed when this fixture is not parametrized but depends on a parametrized 05:13:35 # fixture. 05:13:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:35 05:13:35 # Check for (and return) cached value/exception. 05:13:35 if self.cached_result is not None: 05:13:35 request_cache_key = self.cache_key(request) 05:13:35 cache_key = self.cached_result[1] 05:13:35 try: 05:13:35 # Attempt to make a normal == check: this might fail for objects 05:13:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:35 cache_hit = bool(request_cache_key == cache_key) 05:13:35 except (ValueError, RuntimeError): 05:13:35 # If the comparison raises, use 'is' as fallback. 05:13:35 cache_hit = request_cache_key is cache_key 05:13:35 05:13:35 if cache_hit: 05:13:35 if self.cached_result[2] is not None: 05:13:35 exc, exc_tb = self.cached_result[2] 05:13:35 raise exc.with_traceback(exc_tb) 05:13:35 else: 05:13:35 return self.cached_result[0] 05:13:35 # We have a previous but differently parametrized fixture instance 05:13:35 # so we need to tear it down before creating a new one. 05:13:35 self.finish(request) 05:13:35 assert self.cached_result is None 05:13:35 05:13:35 # Add finalizer to requested fixtures we saved previously. 05:13:35 # We make sure to do this after checking for cached value to avoid 05:13:35 # adding our finalizer multiple times. (#12135) 05:13:35 finalizer = functools.partial(self.finish, request=request) 05:13:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:35 parent_fixture.addfinalizer(finalizer) 05:13:35 05:13:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:35 # which is executed last. 05:13:35 > assert not self._finalizers 05:13:35 ^^^^^^^^^^^^^^^^^^^^ 05:13:35 E AssertionError 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:35 _ ERROR at setup of TestTransportPCEPortmapping.test_24_spdr_portmapping_XPDR2_CLIENT2 _ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c204279c0> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:35 yield 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:35 return (yield) 05:13:35 ^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:35 item.session._setupstate.setup(item) 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:35 col.setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:35 super().setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:35 self._request._fillfixtures() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:35 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:35 fixturedef = self._get_active_fixturedef(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:35 fixturedef.execute(request=subrequest) 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 self = 05:13:35 request = > 05:13:35 05:13:35 def execute(self, request: SubRequest) -> FixtureValue: 05:13:35 """Return the value of this fixture, executing it if not cached.""" 05:13:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:35 # This needs to be done before checking if we have a cached value, since 05:13:35 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:35 # parametrization, they finalize themselves and fixtures depending on it 05:13:35 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:35 # See #4871 05:13:35 requested_fixtures_that_should_finalize_us = [] 05:13:35 for argname in self.argnames: 05:13:35 fixturedef = request._get_active_fixturedef(argname) 05:13:35 # Saves requested fixtures in a list so we later can add our finalizer 05:13:35 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:35 # down first. This is generally handled by SetupState, but still currently 05:13:35 # needed when this fixture is not parametrized but depends on a parametrized 05:13:35 # fixture. 05:13:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:35 05:13:35 # Check for (and return) cached value/exception. 05:13:35 if self.cached_result is not None: 05:13:35 request_cache_key = self.cache_key(request) 05:13:35 cache_key = self.cached_result[1] 05:13:35 try: 05:13:35 # Attempt to make a normal == check: this might fail for objects 05:13:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:35 cache_hit = bool(request_cache_key == cache_key) 05:13:35 except (ValueError, RuntimeError): 05:13:35 # If the comparison raises, use 'is' as fallback. 05:13:35 cache_hit = request_cache_key is cache_key 05:13:35 05:13:35 if cache_hit: 05:13:35 if self.cached_result[2] is not None: 05:13:35 exc, exc_tb = self.cached_result[2] 05:13:35 raise exc.with_traceback(exc_tb) 05:13:35 else: 05:13:35 return self.cached_result[0] 05:13:35 # We have a previous but differently parametrized fixture instance 05:13:35 # so we need to tear it down before creating a new one. 05:13:35 self.finish(request) 05:13:35 assert self.cached_result is None 05:13:35 05:13:35 # Add finalizer to requested fixtures we saved previously. 05:13:35 # We make sure to do this after checking for cached value to avoid 05:13:35 # adding our finalizer multiple times. (#12135) 05:13:35 finalizer = functools.partial(self.finish, request=request) 05:13:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:35 parent_fixture.addfinalizer(finalizer) 05:13:35 05:13:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:35 # which is executed last. 05:13:35 > assert not self._finalizers 05:13:35 ^^^^^^^^^^^^^^^^^^^^ 05:13:35 E AssertionError 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:35 _ ERROR at setup of TestTransportPCEPortmapping.test_25_spdr_portmapping_XPDR2_NETWORK2 _ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c203e1f80> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:35 yield 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:35 return (yield) 05:13:35 ^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:35 item.session._setupstate.setup(item) 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:35 col.setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:35 super().setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:35 self._request._fillfixtures() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:35 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:35 fixturedef = self._get_active_fixturedef(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:35 fixturedef.execute(request=subrequest) 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 self = 05:13:35 request = > 05:13:35 05:13:35 def execute(self, request: SubRequest) -> FixtureValue: 05:13:35 """Return the value of this fixture, executing it if not cached.""" 05:13:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:35 # This needs to be done before checking if we have a cached value, since 05:13:35 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:35 # parametrization, they finalize themselves and fixtures depending on it 05:13:35 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:35 # See #4871 05:13:35 requested_fixtures_that_should_finalize_us = [] 05:13:35 for argname in self.argnames: 05:13:35 fixturedef = request._get_active_fixturedef(argname) 05:13:35 # Saves requested fixtures in a list so we later can add our finalizer 05:13:35 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:35 # down first. This is generally handled by SetupState, but still currently 05:13:35 # needed when this fixture is not parametrized but depends on a parametrized 05:13:35 # fixture. 05:13:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:35 05:13:35 # Check for (and return) cached value/exception. 05:13:35 if self.cached_result is not None: 05:13:35 request_cache_key = self.cache_key(request) 05:13:35 cache_key = self.cached_result[1] 05:13:35 try: 05:13:35 # Attempt to make a normal == check: this might fail for objects 05:13:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:35 cache_hit = bool(request_cache_key == cache_key) 05:13:35 except (ValueError, RuntimeError): 05:13:35 # If the comparison raises, use 'is' as fallback. 05:13:35 cache_hit = request_cache_key is cache_key 05:13:35 05:13:35 if cache_hit: 05:13:35 if self.cached_result[2] is not None: 05:13:35 exc, exc_tb = self.cached_result[2] 05:13:35 raise exc.with_traceback(exc_tb) 05:13:35 else: 05:13:35 return self.cached_result[0] 05:13:35 # We have a previous but differently parametrized fixture instance 05:13:35 # so we need to tear it down before creating a new one. 05:13:35 self.finish(request) 05:13:35 assert self.cached_result is None 05:13:35 05:13:35 # Add finalizer to requested fixtures we saved previously. 05:13:35 # We make sure to do this after checking for cached value to avoid 05:13:35 # adding our finalizer multiple times. (#12135) 05:13:35 finalizer = functools.partial(self.finish, request=request) 05:13:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:35 parent_fixture.addfinalizer(finalizer) 05:13:35 05:13:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:35 # which is executed last. 05:13:35 > assert not self._finalizers 05:13:35 ^^^^^^^^^^^^^^^^^^^^ 05:13:35 E AssertionError 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:35 _ ERROR at setup of TestTransportPCEPortmapping.test_26_spdr_portmapping_XPDR3_CLIENT3 _ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c21d07060> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:35 yield 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:35 return (yield) 05:13:35 ^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:35 item.session._setupstate.setup(item) 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:35 col.setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:35 super().setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:35 self._request._fillfixtures() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:35 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:35 fixturedef = self._get_active_fixturedef(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:35 fixturedef.execute(request=subrequest) 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 self = 05:13:35 request = > 05:13:35 05:13:35 def execute(self, request: SubRequest) -> FixtureValue: 05:13:35 """Return the value of this fixture, executing it if not cached.""" 05:13:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:35 # This needs to be done before checking if we have a cached value, since 05:13:35 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:35 # parametrization, they finalize themselves and fixtures depending on it 05:13:35 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:35 # See #4871 05:13:35 requested_fixtures_that_should_finalize_us = [] 05:13:35 for argname in self.argnames: 05:13:35 fixturedef = request._get_active_fixturedef(argname) 05:13:35 # Saves requested fixtures in a list so we later can add our finalizer 05:13:35 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:35 # down first. This is generally handled by SetupState, but still currently 05:13:35 # needed when this fixture is not parametrized but depends on a parametrized 05:13:35 # fixture. 05:13:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:35 05:13:35 # Check for (and return) cached value/exception. 05:13:35 if self.cached_result is not None: 05:13:35 request_cache_key = self.cache_key(request) 05:13:35 cache_key = self.cached_result[1] 05:13:35 try: 05:13:35 # Attempt to make a normal == check: this might fail for objects 05:13:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:35 cache_hit = bool(request_cache_key == cache_key) 05:13:35 except (ValueError, RuntimeError): 05:13:35 # If the comparison raises, use 'is' as fallback. 05:13:35 cache_hit = request_cache_key is cache_key 05:13:35 05:13:35 if cache_hit: 05:13:35 if self.cached_result[2] is not None: 05:13:35 exc, exc_tb = self.cached_result[2] 05:13:35 raise exc.with_traceback(exc_tb) 05:13:35 else: 05:13:35 return self.cached_result[0] 05:13:35 # We have a previous but differently parametrized fixture instance 05:13:35 # so we need to tear it down before creating a new one. 05:13:35 self.finish(request) 05:13:35 assert self.cached_result is None 05:13:35 05:13:35 # Add finalizer to requested fixtures we saved previously. 05:13:35 # We make sure to do this after checking for cached value to avoid 05:13:35 # adding our finalizer multiple times. (#12135) 05:13:35 finalizer = functools.partial(self.finish, request=request) 05:13:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:35 parent_fixture.addfinalizer(finalizer) 05:13:35 05:13:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:35 # which is executed last. 05:13:35 > assert not self._finalizers 05:13:35 ^^^^^^^^^^^^^^^^^^^^ 05:13:35 E AssertionError 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:35 _ ERROR at setup of TestTransportPCEPortmapping.test_27_spdr_portmapping_XPDR3_NETWORK1 _ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c204279c0> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:35 yield 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:35 return (yield) 05:13:35 ^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:35 item.session._setupstate.setup(item) 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:35 col.setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:35 super().setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:35 self._request._fillfixtures() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:35 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:35 fixturedef = self._get_active_fixturedef(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:35 fixturedef.execute(request=subrequest) 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 self = 05:13:35 request = > 05:13:35 05:13:35 def execute(self, request: SubRequest) -> FixtureValue: 05:13:35 """Return the value of this fixture, executing it if not cached.""" 05:13:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:35 # This needs to be done before checking if we have a cached value, since 05:13:35 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:35 # parametrization, they finalize themselves and fixtures depending on it 05:13:35 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:35 # See #4871 05:13:35 requested_fixtures_that_should_finalize_us = [] 05:13:35 for argname in self.argnames: 05:13:35 fixturedef = request._get_active_fixturedef(argname) 05:13:35 # Saves requested fixtures in a list so we later can add our finalizer 05:13:35 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:35 # down first. This is generally handled by SetupState, but still currently 05:13:35 # needed when this fixture is not parametrized but depends on a parametrized 05:13:35 # fixture. 05:13:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:35 05:13:35 # Check for (and return) cached value/exception. 05:13:35 if self.cached_result is not None: 05:13:35 request_cache_key = self.cache_key(request) 05:13:35 cache_key = self.cached_result[1] 05:13:35 try: 05:13:35 # Attempt to make a normal == check: this might fail for objects 05:13:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:35 cache_hit = bool(request_cache_key == cache_key) 05:13:35 except (ValueError, RuntimeError): 05:13:35 # If the comparison raises, use 'is' as fallback. 05:13:35 cache_hit = request_cache_key is cache_key 05:13:35 05:13:35 if cache_hit: 05:13:35 if self.cached_result[2] is not None: 05:13:35 exc, exc_tb = self.cached_result[2] 05:13:35 raise exc.with_traceback(exc_tb) 05:13:35 else: 05:13:35 return self.cached_result[0] 05:13:35 # We have a previous but differently parametrized fixture instance 05:13:35 # so we need to tear it down before creating a new one. 05:13:35 self.finish(request) 05:13:35 assert self.cached_result is None 05:13:35 05:13:35 # Add finalizer to requested fixtures we saved previously. 05:13:35 # We make sure to do this after checking for cached value to avoid 05:13:35 # adding our finalizer multiple times. (#12135) 05:13:35 finalizer = functools.partial(self.finish, request=request) 05:13:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:35 parent_fixture.addfinalizer(finalizer) 05:13:35 05:13:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:35 # which is executed last. 05:13:35 > assert not self._finalizers 05:13:35 ^^^^^^^^^^^^^^^^^^^^ 05:13:35 E AssertionError 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:35 _ ERROR at setup of TestTransportPCEPortmapping.test_28_spdr_device_disconnection _ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c21d07060> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:35 yield 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:35 return (yield) 05:13:35 ^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:35 item.session._setupstate.setup(item) 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:35 col.setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:35 super().setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:35 self._request._fillfixtures() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:35 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:35 fixturedef = self._get_active_fixturedef(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:35 fixturedef.execute(request=subrequest) 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 self = 05:13:35 request = > 05:13:35 05:13:35 def execute(self, request: SubRequest) -> FixtureValue: 05:13:35 """Return the value of this fixture, executing it if not cached.""" 05:13:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:35 # This needs to be done before checking if we have a cached value, since 05:13:35 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:35 # parametrization, they finalize themselves and fixtures depending on it 05:13:35 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:35 # See #4871 05:13:35 requested_fixtures_that_should_finalize_us = [] 05:13:35 for argname in self.argnames: 05:13:35 fixturedef = request._get_active_fixturedef(argname) 05:13:35 # Saves requested fixtures in a list so we later can add our finalizer 05:13:35 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:35 # down first. This is generally handled by SetupState, but still currently 05:13:35 # needed when this fixture is not parametrized but depends on a parametrized 05:13:35 # fixture. 05:13:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:35 05:13:35 # Check for (and return) cached value/exception. 05:13:35 if self.cached_result is not None: 05:13:35 request_cache_key = self.cache_key(request) 05:13:35 cache_key = self.cached_result[1] 05:13:35 try: 05:13:35 # Attempt to make a normal == check: this might fail for objects 05:13:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:35 cache_hit = bool(request_cache_key == cache_key) 05:13:35 except (ValueError, RuntimeError): 05:13:35 # If the comparison raises, use 'is' as fallback. 05:13:35 cache_hit = request_cache_key is cache_key 05:13:35 05:13:35 if cache_hit: 05:13:35 if self.cached_result[2] is not None: 05:13:35 exc, exc_tb = self.cached_result[2] 05:13:35 raise exc.with_traceback(exc_tb) 05:13:35 else: 05:13:35 return self.cached_result[0] 05:13:35 # We have a previous but differently parametrized fixture instance 05:13:35 # so we need to tear it down before creating a new one. 05:13:35 self.finish(request) 05:13:35 assert self.cached_result is None 05:13:35 05:13:35 # Add finalizer to requested fixtures we saved previously. 05:13:35 # We make sure to do this after checking for cached value to avoid 05:13:35 # adding our finalizer multiple times. (#12135) 05:13:35 finalizer = functools.partial(self.finish, request=request) 05:13:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:35 parent_fixture.addfinalizer(finalizer) 05:13:35 05:13:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:35 # which is executed last. 05:13:35 > assert not self._finalizers 05:13:35 ^^^^^^^^^^^^^^^^^^^^ 05:13:35 E AssertionError 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:35 _ ERROR at setup of TestTransportPCEPortmapping.test_29_xpdr_device_disconnected _ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c204b44a0> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:35 yield 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:35 return (yield) 05:13:35 ^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:35 item.session._setupstate.setup(item) 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:35 col.setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:35 super().setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:35 self._request._fillfixtures() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:35 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:35 fixturedef = self._get_active_fixturedef(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:35 fixturedef.execute(request=subrequest) 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 self = 05:13:35 request = > 05:13:35 05:13:35 def execute(self, request: SubRequest) -> FixtureValue: 05:13:35 """Return the value of this fixture, executing it if not cached.""" 05:13:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:35 # This needs to be done before checking if we have a cached value, since 05:13:35 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:35 # parametrization, they finalize themselves and fixtures depending on it 05:13:35 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:35 # See #4871 05:13:35 requested_fixtures_that_should_finalize_us = [] 05:13:35 for argname in self.argnames: 05:13:35 fixturedef = request._get_active_fixturedef(argname) 05:13:35 # Saves requested fixtures in a list so we later can add our finalizer 05:13:35 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:35 # down first. This is generally handled by SetupState, but still currently 05:13:35 # needed when this fixture is not parametrized but depends on a parametrized 05:13:35 # fixture. 05:13:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:35 05:13:35 # Check for (and return) cached value/exception. 05:13:35 if self.cached_result is not None: 05:13:35 request_cache_key = self.cache_key(request) 05:13:35 cache_key = self.cached_result[1] 05:13:35 try: 05:13:35 # Attempt to make a normal == check: this might fail for objects 05:13:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:35 cache_hit = bool(request_cache_key == cache_key) 05:13:35 except (ValueError, RuntimeError): 05:13:35 # If the comparison raises, use 'is' as fallback. 05:13:35 cache_hit = request_cache_key is cache_key 05:13:35 05:13:35 if cache_hit: 05:13:35 if self.cached_result[2] is not None: 05:13:35 exc, exc_tb = self.cached_result[2] 05:13:35 raise exc.with_traceback(exc_tb) 05:13:35 else: 05:13:35 return self.cached_result[0] 05:13:35 # We have a previous but differently parametrized fixture instance 05:13:35 # so we need to tear it down before creating a new one. 05:13:35 self.finish(request) 05:13:35 assert self.cached_result is None 05:13:35 05:13:35 # Add finalizer to requested fixtures we saved previously. 05:13:35 # We make sure to do this after checking for cached value to avoid 05:13:35 # adding our finalizer multiple times. (#12135) 05:13:35 finalizer = functools.partial(self.finish, request=request) 05:13:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:35 parent_fixture.addfinalizer(finalizer) 05:13:35 05:13:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:35 # which is executed last. 05:13:35 > assert not self._finalizers 05:13:35 ^^^^^^^^^^^^^^^^^^^^ 05:13:35 E AssertionError 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:35 _ ERROR at setup of TestTransportPCEPortmapping.test_30_xpdr_device_disconnection _ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c204279c0> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:35 yield 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:35 return (yield) 05:13:35 ^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:35 item.session._setupstate.setup(item) 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:35 col.setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:35 super().setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:35 self._request._fillfixtures() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:35 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:35 fixturedef = self._get_active_fixturedef(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:35 fixturedef.execute(request=subrequest) 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 self = 05:13:35 request = > 05:13:35 05:13:35 def execute(self, request: SubRequest) -> FixtureValue: 05:13:35 """Return the value of this fixture, executing it if not cached.""" 05:13:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:35 # This needs to be done before checking if we have a cached value, since 05:13:35 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:35 # parametrization, they finalize themselves and fixtures depending on it 05:13:35 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:35 # See #4871 05:13:35 requested_fixtures_that_should_finalize_us = [] 05:13:35 for argname in self.argnames: 05:13:35 fixturedef = request._get_active_fixturedef(argname) 05:13:35 # Saves requested fixtures in a list so we later can add our finalizer 05:13:35 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:35 # down first. This is generally handled by SetupState, but still currently 05:13:35 # needed when this fixture is not parametrized but depends on a parametrized 05:13:35 # fixture. 05:13:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:35 05:13:35 # Check for (and return) cached value/exception. 05:13:35 if self.cached_result is not None: 05:13:35 request_cache_key = self.cache_key(request) 05:13:35 cache_key = self.cached_result[1] 05:13:35 try: 05:13:35 # Attempt to make a normal == check: this might fail for objects 05:13:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:35 cache_hit = bool(request_cache_key == cache_key) 05:13:35 except (ValueError, RuntimeError): 05:13:35 # If the comparison raises, use 'is' as fallback. 05:13:35 cache_hit = request_cache_key is cache_key 05:13:35 05:13:35 if cache_hit: 05:13:35 if self.cached_result[2] is not None: 05:13:35 exc, exc_tb = self.cached_result[2] 05:13:35 raise exc.with_traceback(exc_tb) 05:13:35 else: 05:13:35 return self.cached_result[0] 05:13:35 # We have a previous but differently parametrized fixture instance 05:13:35 # so we need to tear it down before creating a new one. 05:13:35 self.finish(request) 05:13:35 assert self.cached_result is None 05:13:35 05:13:35 # Add finalizer to requested fixtures we saved previously. 05:13:35 # We make sure to do this after checking for cached value to avoid 05:13:35 # adding our finalizer multiple times. (#12135) 05:13:35 finalizer = functools.partial(self.finish, request=request) 05:13:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:35 parent_fixture.addfinalizer(finalizer) 05:13:35 05:13:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:35 # which is executed last. 05:13:35 > assert not self._finalizers 05:13:35 ^^^^^^^^^^^^^^^^^^^^ 05:13:35 E AssertionError 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:35 _ ERROR at setup of TestTransportPCEPortmapping.test_31_xpdr_device_disconnected _ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c204b5800> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:35 yield 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:35 return (yield) 05:13:35 ^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:35 item.session._setupstate.setup(item) 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:35 col.setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:35 super().setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:35 self._request._fillfixtures() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:35 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:35 fixturedef = self._get_active_fixturedef(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:35 fixturedef.execute(request=subrequest) 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 self = 05:13:35 request = > 05:13:35 05:13:35 def execute(self, request: SubRequest) -> FixtureValue: 05:13:35 """Return the value of this fixture, executing it if not cached.""" 05:13:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:35 # This needs to be done before checking if we have a cached value, since 05:13:35 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:35 # parametrization, they finalize themselves and fixtures depending on it 05:13:35 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:35 # See #4871 05:13:35 requested_fixtures_that_should_finalize_us = [] 05:13:35 for argname in self.argnames: 05:13:35 fixturedef = request._get_active_fixturedef(argname) 05:13:35 # Saves requested fixtures in a list so we later can add our finalizer 05:13:35 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:35 # down first. This is generally handled by SetupState, but still currently 05:13:35 # needed when this fixture is not parametrized but depends on a parametrized 05:13:35 # fixture. 05:13:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:35 05:13:35 # Check for (and return) cached value/exception. 05:13:35 if self.cached_result is not None: 05:13:35 request_cache_key = self.cache_key(request) 05:13:35 cache_key = self.cached_result[1] 05:13:35 try: 05:13:35 # Attempt to make a normal == check: this might fail for objects 05:13:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:35 cache_hit = bool(request_cache_key == cache_key) 05:13:35 except (ValueError, RuntimeError): 05:13:35 # If the comparison raises, use 'is' as fallback. 05:13:35 cache_hit = request_cache_key is cache_key 05:13:35 05:13:35 if cache_hit: 05:13:35 if self.cached_result[2] is not None: 05:13:35 exc, exc_tb = self.cached_result[2] 05:13:35 raise exc.with_traceback(exc_tb) 05:13:35 else: 05:13:35 return self.cached_result[0] 05:13:35 # We have a previous but differently parametrized fixture instance 05:13:35 # so we need to tear it down before creating a new one. 05:13:35 self.finish(request) 05:13:35 assert self.cached_result is None 05:13:35 05:13:35 # Add finalizer to requested fixtures we saved previously. 05:13:35 # We make sure to do this after checking for cached value to avoid 05:13:35 # adding our finalizer multiple times. (#12135) 05:13:35 finalizer = functools.partial(self.finish, request=request) 05:13:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:35 parent_fixture.addfinalizer(finalizer) 05:13:35 05:13:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:35 # which is executed last. 05:13:35 > assert not self._finalizers 05:13:35 ^^^^^^^^^^^^^^^^^^^^ 05:13:35 E AssertionError 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:35 _ ERROR at setup of TestTransportPCEPortmapping.test_32_xpdr_device_not_connected _ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c204b4540> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:35 yield 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:35 return (yield) 05:13:35 ^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:35 item.session._setupstate.setup(item) 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:35 col.setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:35 super().setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:35 self._request._fillfixtures() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:35 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:35 fixturedef = self._get_active_fixturedef(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:35 fixturedef.execute(request=subrequest) 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 self = 05:13:35 request = > 05:13:35 05:13:35 def execute(self, request: SubRequest) -> FixtureValue: 05:13:35 """Return the value of this fixture, executing it if not cached.""" 05:13:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:35 # This needs to be done before checking if we have a cached value, since 05:13:35 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:35 # parametrization, they finalize themselves and fixtures depending on it 05:13:35 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:35 # See #4871 05:13:35 requested_fixtures_that_should_finalize_us = [] 05:13:35 for argname in self.argnames: 05:13:35 fixturedef = request._get_active_fixturedef(argname) 05:13:35 # Saves requested fixtures in a list so we later can add our finalizer 05:13:35 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:35 # down first. This is generally handled by SetupState, but still currently 05:13:35 # needed when this fixture is not parametrized but depends on a parametrized 05:13:35 # fixture. 05:13:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:35 05:13:35 # Check for (and return) cached value/exception. 05:13:35 if self.cached_result is not None: 05:13:35 request_cache_key = self.cache_key(request) 05:13:35 cache_key = self.cached_result[1] 05:13:35 try: 05:13:35 # Attempt to make a normal == check: this might fail for objects 05:13:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:35 cache_hit = bool(request_cache_key == cache_key) 05:13:35 except (ValueError, RuntimeError): 05:13:35 # If the comparison raises, use 'is' as fallback. 05:13:35 cache_hit = request_cache_key is cache_key 05:13:35 05:13:35 if cache_hit: 05:13:35 if self.cached_result[2] is not None: 05:13:35 exc, exc_tb = self.cached_result[2] 05:13:35 raise exc.with_traceback(exc_tb) 05:13:35 else: 05:13:35 return self.cached_result[0] 05:13:35 # We have a previous but differently parametrized fixture instance 05:13:35 # so we need to tear it down before creating a new one. 05:13:35 self.finish(request) 05:13:35 assert self.cached_result is None 05:13:35 05:13:35 # Add finalizer to requested fixtures we saved previously. 05:13:35 # We make sure to do this after checking for cached value to avoid 05:13:35 # adding our finalizer multiple times. (#12135) 05:13:35 finalizer = functools.partial(self.finish, request=request) 05:13:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:35 parent_fixture.addfinalizer(finalizer) 05:13:35 05:13:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:35 # which is executed last. 05:13:35 > assert not self._finalizers 05:13:35 ^^^^^^^^^^^^^^^^^^^^ 05:13:35 E AssertionError 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:35 _ ERROR at setup of TestTransportPCEPortmapping.test_33_rdm_device_disconnection _ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c204279c0> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:35 yield 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:35 return (yield) 05:13:35 ^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:35 item.session._setupstate.setup(item) 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:35 col.setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:35 super().setup() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:35 self._request._fillfixtures() 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:35 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:35 fixturedef = self._get_active_fixturedef(argname) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:35 fixturedef.execute(request=subrequest) 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 05:13:35 self = 05:13:35 request = > 05:13:35 05:13:35 def execute(self, request: SubRequest) -> FixtureValue: 05:13:35 """Return the value of this fixture, executing it if not cached.""" 05:13:35 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:35 # This needs to be done before checking if we have a cached value, since 05:13:35 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:35 # parametrization, they finalize themselves and fixtures depending on it 05:13:35 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:35 # See #4871 05:13:35 requested_fixtures_that_should_finalize_us = [] 05:13:35 for argname in self.argnames: 05:13:35 fixturedef = request._get_active_fixturedef(argname) 05:13:35 # Saves requested fixtures in a list so we later can add our finalizer 05:13:35 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:35 # down first. This is generally handled by SetupState, but still currently 05:13:35 # needed when this fixture is not parametrized but depends on a parametrized 05:13:35 # fixture. 05:13:35 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:35 05:13:35 # Check for (and return) cached value/exception. 05:13:35 if self.cached_result is not None: 05:13:35 request_cache_key = self.cache_key(request) 05:13:35 cache_key = self.cached_result[1] 05:13:35 try: 05:13:35 # Attempt to make a normal == check: this might fail for objects 05:13:35 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:35 cache_hit = bool(request_cache_key == cache_key) 05:13:35 except (ValueError, RuntimeError): 05:13:35 # If the comparison raises, use 'is' as fallback. 05:13:35 cache_hit = request_cache_key is cache_key 05:13:35 05:13:35 if cache_hit: 05:13:35 if self.cached_result[2] is not None: 05:13:35 exc, exc_tb = self.cached_result[2] 05:13:35 raise exc.with_traceback(exc_tb) 05:13:35 else: 05:13:35 return self.cached_result[0] 05:13:35 # We have a previous but differently parametrized fixture instance 05:13:35 # so we need to tear it down before creating a new one. 05:13:35 self.finish(request) 05:13:35 assert self.cached_result is None 05:13:35 05:13:35 # Add finalizer to requested fixtures we saved previously. 05:13:35 # We make sure to do this after checking for cached value to avoid 05:13:35 # adding our finalizer multiple times. (#12135) 05:13:35 finalizer = functools.partial(self.finish, request=request) 05:13:35 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:35 parent_fixture.addfinalizer(finalizer) 05:13:35 05:13:35 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:35 # which is executed last. 05:13:35 > assert not self._finalizers 05:13:35 ^^^^^^^^^^^^^^^^^^^^ 05:13:35 E AssertionError 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:35 _ ERROR at setup of TestTransportPCEPortmapping.test_34_rdm_device_disconnected _ 05:13:35 05:13:35 cls = 05:13:35 func = . at 0x7f3c204b56c0> 05:13:35 when = 'setup' 05:13:35 reraise = (, ) 05:13:35 05:13:35 @classmethod 05:13:35 def from_call( 05:13:35 cls, 05:13:35 func: Callable[[], TResult], 05:13:35 when: Literal["collect", "setup", "call", "teardown"], 05:13:35 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:35 ) -> CallInfo[TResult]: 05:13:35 """Call func, wrapping the result in a CallInfo. 05:13:35 05:13:35 :param func: 05:13:35 The function to call. Called without arguments. 05:13:35 :type func: Callable[[], _pytest.runner.TResult] 05:13:35 :param when: 05:13:35 The phase in which the function is called. 05:13:35 :param reraise: 05:13:35 Exception or exceptions that shall propagate if raised by the 05:13:35 function, instead of being wrapped in the CallInfo. 05:13:35 """ 05:13:35 excinfo = None 05:13:35 instant = timing.Instant() 05:13:35 try: 05:13:35 > result: TResult | None = func() 05:13:35 ^^^^^^ 05:13:35 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:35 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:35 lambda: runtest_hook(item=item, **kwds), 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:35 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:35 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:35 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:35 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:36 yield 05:13:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:36 return (yield) 05:13:36 ^^^^^ 05:13:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:36 item.session._setupstate.setup(item) 05:13:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:36 col.setup() 05:13:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:36 super().setup() 05:13:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:36 self._request._fillfixtures() 05:13:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:36 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:36 fixturedef = self._get_active_fixturedef(argname) 05:13:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:36 fixturedef.execute(request=subrequest) 05:13:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:36 05:13:36 self = 05:13:36 request = > 05:13:36 05:13:36 def execute(self, request: SubRequest) -> FixtureValue: 05:13:36 """Return the value of this fixture, executing it if not cached.""" 05:13:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:36 # This needs to be done before checking if we have a cached value, since 05:13:36 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:36 # parametrization, they finalize themselves and fixtures depending on it 05:13:36 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:36 # See #4871 05:13:36 requested_fixtures_that_should_finalize_us = [] 05:13:36 for argname in self.argnames: 05:13:36 fixturedef = request._get_active_fixturedef(argname) 05:13:36 # Saves requested fixtures in a list so we later can add our finalizer 05:13:36 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:36 # down first. This is generally handled by SetupState, but still currently 05:13:36 # needed when this fixture is not parametrized but depends on a parametrized 05:13:36 # fixture. 05:13:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:36 05:13:36 # Check for (and return) cached value/exception. 05:13:36 if self.cached_result is not None: 05:13:36 request_cache_key = self.cache_key(request) 05:13:36 cache_key = self.cached_result[1] 05:13:36 try: 05:13:36 # Attempt to make a normal == check: this might fail for objects 05:13:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:36 cache_hit = bool(request_cache_key == cache_key) 05:13:36 except (ValueError, RuntimeError): 05:13:36 # If the comparison raises, use 'is' as fallback. 05:13:36 cache_hit = request_cache_key is cache_key 05:13:36 05:13:36 if cache_hit: 05:13:36 if self.cached_result[2] is not None: 05:13:36 exc, exc_tb = self.cached_result[2] 05:13:36 raise exc.with_traceback(exc_tb) 05:13:36 else: 05:13:36 return self.cached_result[0] 05:13:36 # We have a previous but differently parametrized fixture instance 05:13:36 # so we need to tear it down before creating a new one. 05:13:36 self.finish(request) 05:13:36 assert self.cached_result is None 05:13:36 05:13:36 # Add finalizer to requested fixtures we saved previously. 05:13:36 # We make sure to do this after checking for cached value to avoid 05:13:36 # adding our finalizer multiple times. (#12135) 05:13:36 finalizer = functools.partial(self.finish, request=request) 05:13:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:36 parent_fixture.addfinalizer(finalizer) 05:13:36 05:13:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:36 # which is executed last. 05:13:36 > assert not self._finalizers 05:13:36 ^^^^^^^^^^^^^^^^^^^^ 05:13:36 E AssertionError 05:13:36 05:13:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:36 _ ERROR at setup of TestTransportPCEPortmapping.test_35_rdm_device_not_connected _ 05:13:36 05:13:36 cls = 05:13:36 func = . at 0x7f3c204279c0> 05:13:36 when = 'setup' 05:13:36 reraise = (, ) 05:13:36 05:13:36 @classmethod 05:13:36 def from_call( 05:13:36 cls, 05:13:36 func: Callable[[], TResult], 05:13:36 when: Literal["collect", "setup", "call", "teardown"], 05:13:36 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:13:36 ) -> CallInfo[TResult]: 05:13:36 """Call func, wrapping the result in a CallInfo. 05:13:36 05:13:36 :param func: 05:13:36 The function to call. Called without arguments. 05:13:36 :type func: Callable[[], _pytest.runner.TResult] 05:13:36 :param when: 05:13:36 The phase in which the function is called. 05:13:36 :param reraise: 05:13:36 Exception or exceptions that shall propagate if raised by the 05:13:36 function, instead of being wrapped in the CallInfo. 05:13:36 """ 05:13:36 excinfo = None 05:13:36 instant = timing.Instant() 05:13:36 try: 05:13:36 > result: TResult | None = func() 05:13:36 ^^^^^^ 05:13:36 05:13:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:361: 05:13:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:13:36 lambda: runtest_hook(item=item, **kwds), 05:13:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:13:36 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:13:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:36 ../.tox/tests221/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:13:36 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:13:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:13:36 yield 05:13:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:13:36 return (yield) 05:13:36 ^^^^^ 05:13:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:13:36 item.session._setupstate.setup(item) 05:13:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:13:36 col.setup() 05:13:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:13:36 super().setup() 05:13:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:13:36 self._request._fillfixtures() 05:13:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:13:36 item.funcargs[argname] = self.getfixturevalue(argname) 05:13:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:13:36 fixturedef = self._get_active_fixturedef(argname) 05:13:36 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:13:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:13:36 fixturedef.execute(request=subrequest) 05:13:36 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:13:36 05:13:36 self = 05:13:36 request = > 05:13:36 05:13:36 def execute(self, request: SubRequest) -> FixtureValue: 05:13:36 """Return the value of this fixture, executing it if not cached.""" 05:13:36 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:13:36 # This needs to be done before checking if we have a cached value, since 05:13:36 # if a dependent fixture has their cache invalidated, e.g. due to 05:13:36 # parametrization, they finalize themselves and fixtures depending on it 05:13:36 # (which will likely include this fixture) setting `self.cached_result = None`. 05:13:36 # See #4871 05:13:36 requested_fixtures_that_should_finalize_us = [] 05:13:36 for argname in self.argnames: 05:13:36 fixturedef = request._get_active_fixturedef(argname) 05:13:36 # Saves requested fixtures in a list so we later can add our finalizer 05:13:36 # to them, ensuring that if a requested fixture gets torn down we get torn 05:13:36 # down first. This is generally handled by SetupState, but still currently 05:13:36 # needed when this fixture is not parametrized but depends on a parametrized 05:13:36 # fixture. 05:13:36 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:13:36 05:13:36 # Check for (and return) cached value/exception. 05:13:36 if self.cached_result is not None: 05:13:36 request_cache_key = self.cache_key(request) 05:13:36 cache_key = self.cached_result[1] 05:13:36 try: 05:13:36 # Attempt to make a normal == check: this might fail for objects 05:13:36 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:13:36 cache_hit = bool(request_cache_key == cache_key) 05:13:36 except (ValueError, RuntimeError): 05:13:36 # If the comparison raises, use 'is' as fallback. 05:13:36 cache_hit = request_cache_key is cache_key 05:13:36 05:13:36 if cache_hit: 05:13:36 if self.cached_result[2] is not None: 05:13:36 exc, exc_tb = self.cached_result[2] 05:13:36 raise exc.with_traceback(exc_tb) 05:13:36 else: 05:13:36 return self.cached_result[0] 05:13:36 # We have a previous but differently parametrized fixture instance 05:13:36 # so we need to tear it down before creating a new one. 05:13:36 self.finish(request) 05:13:36 assert self.cached_result is None 05:13:36 05:13:36 # Add finalizer to requested fixtures we saved previously. 05:13:36 # We make sure to do this after checking for cached value to avoid 05:13:36 # adding our finalizer multiple times. (#12135) 05:13:36 finalizer = functools.partial(self.finish, request=request) 05:13:36 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:13:36 parent_fixture.addfinalizer(finalizer) 05:13:36 05:13:36 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:13:36 # which is executed last. 05:13:36 > assert not self._finalizers 05:13:36 ^^^^^^^^^^^^^^^^^^^^ 05:13:36 E AssertionError 05:13:36 05:13:36 ../.tox/tests221/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:13:36 =========================== short test summary info ============================ 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_rdm_device_connection 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_rdm_device_connected 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_rdm_portmapping_info 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_rdm_portmapping_DEG1_TTP_TXRX 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_rdm_portmapping_DEG2_TTP_TXRX_with_ots_oms 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_rdm_portmapping_SRG1_PP3_TXRX 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_rdm_portmapping_SRG3_PP1_TXRX 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_xpdr_device_connection 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_xpdr_device_connected 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_portmapping_info 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_portmapping_NETWORK1 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_portmapping_XPDR2_NETWORK1 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_13_xpdr_portmapping_XPDR1_CLIENT1 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_14_xpdr_portmapping_XPDR1_CLIENT2 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_15_spdr_device_connection 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_16_spdr_device_connected 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_17_spdr_portmapping_info 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_18_spdr_switching_pool_1 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_19_spdr_switching_pool_2 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_20_spdr_switching_pool_3 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_21_spdr_portmapping_mappings 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_22_spdr_portmapping_XPDR1_CLIENT1 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_23_spdr_portmapping_XPDR1_NETWORK1 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_24_spdr_portmapping_XPDR2_CLIENT2 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_25_spdr_portmapping_XPDR2_NETWORK2 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_26_spdr_portmapping_XPDR3_CLIENT3 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_27_spdr_portmapping_XPDR3_NETWORK1 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_28_spdr_device_disconnection 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_29_xpdr_device_disconnected 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_30_xpdr_device_disconnection 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_31_xpdr_device_disconnected 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_32_xpdr_device_not_connected 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_33_rdm_device_disconnection 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_34_rdm_device_disconnected 05:13:36 ERROR transportpce_tests/2.2.1/test01_portmapping.py::TestTransportPCEPortmapping::test_35_rdm_device_not_connected 05:13:36 35 errors in 106.53s (0:01:46) 05:13:36 tests221: exit 1 (106.81 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 2.2.1 pid=5279 05:13:36 tests221: FAIL ✖ in 1 minute 55.52 seconds 05:13:36 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 05:13:39 tests71: freeze> python -m pip freeze --all 05:13:39 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.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 05:13:39 tests71: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 05:13:39 using environment variables from ./karaf71.env 05:13:39 pytest -q transportpce_tests/7.1/test01_portmapping.py 05:13:42 tests_hybrid: freeze> python -m pip freeze --all 05:13:42 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.0,Pygments==2.21.0,PyNaCl==1.6.2,pytest==9.1.1,requests==2.34.2,setuptools==84.0.0,urllib3==2.8.0 05:13:42 tests_hybrid: commands[0] /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid 05:13:42 using environment variables from ./karaf221.env 05:13:42 pytest -q transportpce_tests/hybrid/test01_device_change_notifications.py 05:15:20 EEEEEEEEEEEE [100%] 05:15:22 ==================================== ERRORS ==================================== 05:15:22 _ ERROR at setup of TestTransportPCEPortmapping.test_01_xpdr_device_connection _ 05:15:22 05:15:22 cls = 05:15:22 05:15:22 @classmethod 05:15:22 def setUpClass(cls): 05:15:22 > cls.processes = test_utils.start_tpce() 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 05:15:22 transportpce_tests/7.1/test01_portmapping.py:32: 05:15:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:22 05:15:22 def start_tpce(): 05:15:22 if 'NO_ODL_STARTUP' in os.environ: 05:15:22 print('No OpenDaylight instance to start!') 05:15:22 return [] 05:15:22 print('starting OpenDaylight...') 05:15:22 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 05:15:22 process = start_lighty() 05:15:22 else: 05:15:22 process = start_karaf() 05:15:22 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 05:15:22 print('OpenDaylight started !') 05:15:22 else: 05:15:22 print('OpenDaylight failed to start !') 05:15:22 shutdown_process(process) 05:15:22 for pid in process_list: 05:15:22 shutdown_process(pid) 05:15:22 > sys.exit(1) 05:15:22 E SystemExit: 1 05:15:22 05:15:22 transportpce_tests/common/test_utils.py:234: SystemExit 05:15:22 ---------------------------- Captured stdout setup ----------------------------- 05:15:22 starting OpenDaylight... 05:15:22 starting KARAF (karaf71) TransportPCE build... 05:15:22 Pattern not found after 100 seconds! OpenDaylight failed to start ! 05:15:22 _ ERROR at setup of TestTransportPCEPortmapping.test_02_xpdr_device_connected __ 05:15:22 05:15:22 cls = 05:15:22 func = . at 0x7f0964ed74c0> 05:15:22 when = 'setup' 05:15:22 reraise = (, ) 05:15:22 05:15:22 @classmethod 05:15:22 def from_call( 05:15:22 cls, 05:15:22 func: Callable[[], TResult], 05:15:22 when: Literal["collect", "setup", "call", "teardown"], 05:15:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:22 ) -> CallInfo[TResult]: 05:15:22 """Call func, wrapping the result in a CallInfo. 05:15:22 05:15:22 :param func: 05:15:22 The function to call. Called without arguments. 05:15:22 :type func: Callable[[], _pytest.runner.TResult] 05:15:22 :param when: 05:15:22 The phase in which the function is called. 05:15:22 :param reraise: 05:15:22 Exception or exceptions that shall propagate if raised by the 05:15:22 function, instead of being wrapped in the CallInfo. 05:15:22 """ 05:15:22 excinfo = None 05:15:22 instant = timing.Instant() 05:15:22 try: 05:15:22 > result: TResult | None = func() 05:15:22 ^^^^^^ 05:15:22 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:22 lambda: runtest_hook(item=item, **kwds), 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:22 yield 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:22 return (yield) 05:15:22 ^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:22 item.session._setupstate.setup(item) 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:22 col.setup() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:22 super().setup() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:22 self._request._fillfixtures() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:22 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:22 fixturedef = self._get_active_fixturedef(argname) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:22 fixturedef.execute(request=subrequest) 05:15:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:22 05:15:22 self = 05:15:22 request = > 05:15:22 05:15:22 def execute(self, request: SubRequest) -> FixtureValue: 05:15:22 """Return the value of this fixture, executing it if not cached.""" 05:15:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:22 # This needs to be done before checking if we have a cached value, since 05:15:22 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:22 # parametrization, they finalize themselves and fixtures depending on it 05:15:22 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:22 # See #4871 05:15:22 requested_fixtures_that_should_finalize_us = [] 05:15:22 for argname in self.argnames: 05:15:22 fixturedef = request._get_active_fixturedef(argname) 05:15:22 # Saves requested fixtures in a list so we later can add our finalizer 05:15:22 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:22 # down first. This is generally handled by SetupState, but still currently 05:15:22 # needed when this fixture is not parametrized but depends on a parametrized 05:15:22 # fixture. 05:15:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:22 05:15:22 # Check for (and return) cached value/exception. 05:15:22 if self.cached_result is not None: 05:15:22 request_cache_key = self.cache_key(request) 05:15:22 cache_key = self.cached_result[1] 05:15:22 try: 05:15:22 # Attempt to make a normal == check: this might fail for objects 05:15:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:22 cache_hit = bool(request_cache_key == cache_key) 05:15:22 except (ValueError, RuntimeError): 05:15:22 # If the comparison raises, use 'is' as fallback. 05:15:22 cache_hit = request_cache_key is cache_key 05:15:22 05:15:22 if cache_hit: 05:15:22 if self.cached_result[2] is not None: 05:15:22 exc, exc_tb = self.cached_result[2] 05:15:22 raise exc.with_traceback(exc_tb) 05:15:22 else: 05:15:22 return self.cached_result[0] 05:15:22 # We have a previous but differently parametrized fixture instance 05:15:22 # so we need to tear it down before creating a new one. 05:15:22 self.finish(request) 05:15:22 assert self.cached_result is None 05:15:22 05:15:22 # Add finalizer to requested fixtures we saved previously. 05:15:22 # We make sure to do this after checking for cached value to avoid 05:15:22 # adding our finalizer multiple times. (#12135) 05:15:22 finalizer = functools.partial(self.finish, request=request) 05:15:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:22 parent_fixture.addfinalizer(finalizer) 05:15:22 05:15:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:22 # which is executed last. 05:15:22 > assert not self._finalizers 05:15:22 ^^^^^^^^^^^^^^^^^^^^ 05:15:22 E AssertionError 05:15:22 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:22 _ ERROR at setup of TestTransportPCEPortmapping.test_03_xpdr_portmapping_info __ 05:15:22 05:15:22 cls = 05:15:22 func = . at 0x7f09627c3a60> 05:15:22 when = 'setup' 05:15:22 reraise = (, ) 05:15:22 05:15:22 @classmethod 05:15:22 def from_call( 05:15:22 cls, 05:15:22 func: Callable[[], TResult], 05:15:22 when: Literal["collect", "setup", "call", "teardown"], 05:15:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:22 ) -> CallInfo[TResult]: 05:15:22 """Call func, wrapping the result in a CallInfo. 05:15:22 05:15:22 :param func: 05:15:22 The function to call. Called without arguments. 05:15:22 :type func: Callable[[], _pytest.runner.TResult] 05:15:22 :param when: 05:15:22 The phase in which the function is called. 05:15:22 :param reraise: 05:15:22 Exception or exceptions that shall propagate if raised by the 05:15:22 function, instead of being wrapped in the CallInfo. 05:15:22 """ 05:15:22 excinfo = None 05:15:22 instant = timing.Instant() 05:15:22 try: 05:15:22 > result: TResult | None = func() 05:15:22 ^^^^^^ 05:15:22 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:22 lambda: runtest_hook(item=item, **kwds), 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:22 yield 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:22 return (yield) 05:15:22 ^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:22 item.session._setupstate.setup(item) 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:22 col.setup() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:22 super().setup() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:22 self._request._fillfixtures() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:22 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:22 fixturedef = self._get_active_fixturedef(argname) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:22 fixturedef.execute(request=subrequest) 05:15:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:22 05:15:22 self = 05:15:22 request = > 05:15:22 05:15:22 def execute(self, request: SubRequest) -> FixtureValue: 05:15:22 """Return the value of this fixture, executing it if not cached.""" 05:15:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:22 # This needs to be done before checking if we have a cached value, since 05:15:22 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:22 # parametrization, they finalize themselves and fixtures depending on it 05:15:22 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:22 # See #4871 05:15:22 requested_fixtures_that_should_finalize_us = [] 05:15:22 for argname in self.argnames: 05:15:22 fixturedef = request._get_active_fixturedef(argname) 05:15:22 # Saves requested fixtures in a list so we later can add our finalizer 05:15:22 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:22 # down first. This is generally handled by SetupState, but still currently 05:15:22 # needed when this fixture is not parametrized but depends on a parametrized 05:15:22 # fixture. 05:15:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:22 05:15:22 # Check for (and return) cached value/exception. 05:15:22 if self.cached_result is not None: 05:15:22 request_cache_key = self.cache_key(request) 05:15:22 cache_key = self.cached_result[1] 05:15:22 try: 05:15:22 # Attempt to make a normal == check: this might fail for objects 05:15:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:22 cache_hit = bool(request_cache_key == cache_key) 05:15:22 except (ValueError, RuntimeError): 05:15:22 # If the comparison raises, use 'is' as fallback. 05:15:22 cache_hit = request_cache_key is cache_key 05:15:22 05:15:22 if cache_hit: 05:15:22 if self.cached_result[2] is not None: 05:15:22 exc, exc_tb = self.cached_result[2] 05:15:22 raise exc.with_traceback(exc_tb) 05:15:22 else: 05:15:22 return self.cached_result[0] 05:15:22 # We have a previous but differently parametrized fixture instance 05:15:22 # so we need to tear it down before creating a new one. 05:15:22 self.finish(request) 05:15:22 assert self.cached_result is None 05:15:22 05:15:22 # Add finalizer to requested fixtures we saved previously. 05:15:22 # We make sure to do this after checking for cached value to avoid 05:15:22 # adding our finalizer multiple times. (#12135) 05:15:22 finalizer = functools.partial(self.finish, request=request) 05:15:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:22 parent_fixture.addfinalizer(finalizer) 05:15:22 05:15:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:22 # which is executed last. 05:15:22 > assert not self._finalizers 05:15:22 ^^^^^^^^^^^^^^^^^^^^ 05:15:22 E AssertionError 05:15:22 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:22 _ ERROR at setup of TestTransportPCEPortmapping.test_04_tpdr_portmapping_NETWORK1 _ 05:15:22 05:15:22 cls = 05:15:22 func = . at 0x7f09640e6fc0> 05:15:22 when = 'setup' 05:15:22 reraise = (, ) 05:15:22 05:15:22 @classmethod 05:15:22 def from_call( 05:15:22 cls, 05:15:22 func: Callable[[], TResult], 05:15:22 when: Literal["collect", "setup", "call", "teardown"], 05:15:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:22 ) -> CallInfo[TResult]: 05:15:22 """Call func, wrapping the result in a CallInfo. 05:15:22 05:15:22 :param func: 05:15:22 The function to call. Called without arguments. 05:15:22 :type func: Callable[[], _pytest.runner.TResult] 05:15:22 :param when: 05:15:22 The phase in which the function is called. 05:15:22 :param reraise: 05:15:22 Exception or exceptions that shall propagate if raised by the 05:15:22 function, instead of being wrapped in the CallInfo. 05:15:22 """ 05:15:22 excinfo = None 05:15:22 instant = timing.Instant() 05:15:22 try: 05:15:22 > result: TResult | None = func() 05:15:22 ^^^^^^ 05:15:22 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:22 lambda: runtest_hook(item=item, **kwds), 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:22 yield 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:22 return (yield) 05:15:22 ^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:22 item.session._setupstate.setup(item) 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:22 col.setup() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:22 super().setup() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:22 self._request._fillfixtures() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:22 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:22 fixturedef = self._get_active_fixturedef(argname) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:22 fixturedef.execute(request=subrequest) 05:15:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:22 05:15:22 self = 05:15:22 request = > 05:15:22 05:15:22 def execute(self, request: SubRequest) -> FixtureValue: 05:15:22 """Return the value of this fixture, executing it if not cached.""" 05:15:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:22 # This needs to be done before checking if we have a cached value, since 05:15:22 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:22 # parametrization, they finalize themselves and fixtures depending on it 05:15:22 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:22 # See #4871 05:15:22 requested_fixtures_that_should_finalize_us = [] 05:15:22 for argname in self.argnames: 05:15:22 fixturedef = request._get_active_fixturedef(argname) 05:15:22 # Saves requested fixtures in a list so we later can add our finalizer 05:15:22 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:22 # down first. This is generally handled by SetupState, but still currently 05:15:22 # needed when this fixture is not parametrized but depends on a parametrized 05:15:22 # fixture. 05:15:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:22 05:15:22 # Check for (and return) cached value/exception. 05:15:22 if self.cached_result is not None: 05:15:22 request_cache_key = self.cache_key(request) 05:15:22 cache_key = self.cached_result[1] 05:15:22 try: 05:15:22 # Attempt to make a normal == check: this might fail for objects 05:15:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:22 cache_hit = bool(request_cache_key == cache_key) 05:15:22 except (ValueError, RuntimeError): 05:15:22 # If the comparison raises, use 'is' as fallback. 05:15:22 cache_hit = request_cache_key is cache_key 05:15:22 05:15:22 if cache_hit: 05:15:22 if self.cached_result[2] is not None: 05:15:22 exc, exc_tb = self.cached_result[2] 05:15:22 raise exc.with_traceback(exc_tb) 05:15:22 else: 05:15:22 return self.cached_result[0] 05:15:22 # We have a previous but differently parametrized fixture instance 05:15:22 # so we need to tear it down before creating a new one. 05:15:22 self.finish(request) 05:15:22 assert self.cached_result is None 05:15:22 05:15:22 # Add finalizer to requested fixtures we saved previously. 05:15:22 # We make sure to do this after checking for cached value to avoid 05:15:22 # adding our finalizer multiple times. (#12135) 05:15:22 finalizer = functools.partial(self.finish, request=request) 05:15:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:22 parent_fixture.addfinalizer(finalizer) 05:15:22 05:15:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:22 # which is executed last. 05:15:22 > assert not self._finalizers 05:15:22 ^^^^^^^^^^^^^^^^^^^^ 05:15:22 E AssertionError 05:15:22 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:22 _ ERROR at setup of TestTransportPCEPortmapping.test_05_tpdr_portmapping_CLIENT1 _ 05:15:22 05:15:22 cls = 05:15:22 func = . at 0x7f0964ed72e0> 05:15:22 when = 'setup' 05:15:22 reraise = (, ) 05:15:22 05:15:22 @classmethod 05:15:22 def from_call( 05:15:22 cls, 05:15:22 func: Callable[[], TResult], 05:15:22 when: Literal["collect", "setup", "call", "teardown"], 05:15:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:22 ) -> CallInfo[TResult]: 05:15:22 """Call func, wrapping the result in a CallInfo. 05:15:22 05:15:22 :param func: 05:15:22 The function to call. Called without arguments. 05:15:22 :type func: Callable[[], _pytest.runner.TResult] 05:15:22 :param when: 05:15:22 The phase in which the function is called. 05:15:22 :param reraise: 05:15:22 Exception or exceptions that shall propagate if raised by the 05:15:22 function, instead of being wrapped in the CallInfo. 05:15:22 """ 05:15:22 excinfo = None 05:15:22 instant = timing.Instant() 05:15:22 try: 05:15:22 > result: TResult | None = func() 05:15:22 ^^^^^^ 05:15:22 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:22 lambda: runtest_hook(item=item, **kwds), 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:22 yield 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:22 return (yield) 05:15:22 ^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:22 item.session._setupstate.setup(item) 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:22 col.setup() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:22 super().setup() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:22 self._request._fillfixtures() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:22 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:22 fixturedef = self._get_active_fixturedef(argname) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:22 fixturedef.execute(request=subrequest) 05:15:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:22 05:15:22 self = 05:15:22 request = > 05:15:22 05:15:22 def execute(self, request: SubRequest) -> FixtureValue: 05:15:22 """Return the value of this fixture, executing it if not cached.""" 05:15:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:22 # This needs to be done before checking if we have a cached value, since 05:15:22 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:22 # parametrization, they finalize themselves and fixtures depending on it 05:15:22 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:22 # See #4871 05:15:22 requested_fixtures_that_should_finalize_us = [] 05:15:22 for argname in self.argnames: 05:15:22 fixturedef = request._get_active_fixturedef(argname) 05:15:22 # Saves requested fixtures in a list so we later can add our finalizer 05:15:22 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:22 # down first. This is generally handled by SetupState, but still currently 05:15:22 # needed when this fixture is not parametrized but depends on a parametrized 05:15:22 # fixture. 05:15:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:22 05:15:22 # Check for (and return) cached value/exception. 05:15:22 if self.cached_result is not None: 05:15:22 request_cache_key = self.cache_key(request) 05:15:22 cache_key = self.cached_result[1] 05:15:22 try: 05:15:22 # Attempt to make a normal == check: this might fail for objects 05:15:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:22 cache_hit = bool(request_cache_key == cache_key) 05:15:22 except (ValueError, RuntimeError): 05:15:22 # If the comparison raises, use 'is' as fallback. 05:15:22 cache_hit = request_cache_key is cache_key 05:15:22 05:15:22 if cache_hit: 05:15:22 if self.cached_result[2] is not None: 05:15:22 exc, exc_tb = self.cached_result[2] 05:15:22 raise exc.with_traceback(exc_tb) 05:15:22 else: 05:15:22 return self.cached_result[0] 05:15:22 # We have a previous but differently parametrized fixture instance 05:15:22 # so we need to tear it down before creating a new one. 05:15:22 self.finish(request) 05:15:22 assert self.cached_result is None 05:15:22 05:15:22 # Add finalizer to requested fixtures we saved previously. 05:15:22 # We make sure to do this after checking for cached value to avoid 05:15:22 # adding our finalizer multiple times. (#12135) 05:15:22 finalizer = functools.partial(self.finish, request=request) 05:15:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:22 parent_fixture.addfinalizer(finalizer) 05:15:22 05:15:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:22 # which is executed last. 05:15:22 > assert not self._finalizers 05:15:22 ^^^^^^^^^^^^^^^^^^^^ 05:15:22 E AssertionError 05:15:22 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:22 _ ERROR at setup of TestTransportPCEPortmapping.test_06_mpdr_portmapping_NETWORK1 _ 05:15:22 05:15:22 cls = 05:15:22 func = . at 0x7f09627c37e0> 05:15:22 when = 'setup' 05:15:22 reraise = (, ) 05:15:22 05:15:22 @classmethod 05:15:22 def from_call( 05:15:22 cls, 05:15:22 func: Callable[[], TResult], 05:15:22 when: Literal["collect", "setup", "call", "teardown"], 05:15:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:22 ) -> CallInfo[TResult]: 05:15:22 """Call func, wrapping the result in a CallInfo. 05:15:22 05:15:22 :param func: 05:15:22 The function to call. Called without arguments. 05:15:22 :type func: Callable[[], _pytest.runner.TResult] 05:15:22 :param when: 05:15:22 The phase in which the function is called. 05:15:22 :param reraise: 05:15:22 Exception or exceptions that shall propagate if raised by the 05:15:22 function, instead of being wrapped in the CallInfo. 05:15:22 """ 05:15:22 excinfo = None 05:15:22 instant = timing.Instant() 05:15:22 try: 05:15:22 > result: TResult | None = func() 05:15:22 ^^^^^^ 05:15:22 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:22 lambda: runtest_hook(item=item, **kwds), 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:22 yield 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:22 return (yield) 05:15:22 ^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:22 item.session._setupstate.setup(item) 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:22 col.setup() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:22 super().setup() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:22 self._request._fillfixtures() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:22 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:22 fixturedef = self._get_active_fixturedef(argname) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:22 fixturedef.execute(request=subrequest) 05:15:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:22 05:15:22 self = 05:15:22 request = > 05:15:22 05:15:22 def execute(self, request: SubRequest) -> FixtureValue: 05:15:22 """Return the value of this fixture, executing it if not cached.""" 05:15:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:22 # This needs to be done before checking if we have a cached value, since 05:15:22 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:22 # parametrization, they finalize themselves and fixtures depending on it 05:15:22 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:22 # See #4871 05:15:22 requested_fixtures_that_should_finalize_us = [] 05:15:22 for argname in self.argnames: 05:15:22 fixturedef = request._get_active_fixturedef(argname) 05:15:22 # Saves requested fixtures in a list so we later can add our finalizer 05:15:22 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:22 # down first. This is generally handled by SetupState, but still currently 05:15:22 # needed when this fixture is not parametrized but depends on a parametrized 05:15:22 # fixture. 05:15:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:22 05:15:22 # Check for (and return) cached value/exception. 05:15:22 if self.cached_result is not None: 05:15:22 request_cache_key = self.cache_key(request) 05:15:22 cache_key = self.cached_result[1] 05:15:22 try: 05:15:22 # Attempt to make a normal == check: this might fail for objects 05:15:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:22 cache_hit = bool(request_cache_key == cache_key) 05:15:22 except (ValueError, RuntimeError): 05:15:22 # If the comparison raises, use 'is' as fallback. 05:15:22 cache_hit = request_cache_key is cache_key 05:15:22 05:15:22 if cache_hit: 05:15:22 if self.cached_result[2] is not None: 05:15:22 exc, exc_tb = self.cached_result[2] 05:15:22 raise exc.with_traceback(exc_tb) 05:15:22 else: 05:15:22 return self.cached_result[0] 05:15:22 # We have a previous but differently parametrized fixture instance 05:15:22 # so we need to tear it down before creating a new one. 05:15:22 self.finish(request) 05:15:22 assert self.cached_result is None 05:15:22 05:15:22 # Add finalizer to requested fixtures we saved previously. 05:15:22 # We make sure to do this after checking for cached value to avoid 05:15:22 # adding our finalizer multiple times. (#12135) 05:15:22 finalizer = functools.partial(self.finish, request=request) 05:15:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:22 parent_fixture.addfinalizer(finalizer) 05:15:22 05:15:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:22 # which is executed last. 05:15:22 > assert not self._finalizers 05:15:22 ^^^^^^^^^^^^^^^^^^^^ 05:15:22 E AssertionError 05:15:22 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:22 _ ERROR at setup of TestTransportPCEPortmapping.test_07_mpdr_portmapping_CLIENT1 _ 05:15:22 05:15:22 cls = 05:15:22 func = . at 0x7f09640e6fc0> 05:15:22 when = 'setup' 05:15:22 reraise = (, ) 05:15:22 05:15:22 @classmethod 05:15:22 def from_call( 05:15:22 cls, 05:15:22 func: Callable[[], TResult], 05:15:22 when: Literal["collect", "setup", "call", "teardown"], 05:15:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:22 ) -> CallInfo[TResult]: 05:15:22 """Call func, wrapping the result in a CallInfo. 05:15:22 05:15:22 :param func: 05:15:22 The function to call. Called without arguments. 05:15:22 :type func: Callable[[], _pytest.runner.TResult] 05:15:22 :param when: 05:15:22 The phase in which the function is called. 05:15:22 :param reraise: 05:15:22 Exception or exceptions that shall propagate if raised by the 05:15:22 function, instead of being wrapped in the CallInfo. 05:15:22 """ 05:15:22 excinfo = None 05:15:22 instant = timing.Instant() 05:15:22 try: 05:15:22 > result: TResult | None = func() 05:15:22 ^^^^^^ 05:15:22 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:22 lambda: runtest_hook(item=item, **kwds), 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:22 yield 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:22 return (yield) 05:15:22 ^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:22 item.session._setupstate.setup(item) 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:22 col.setup() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:22 super().setup() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:22 self._request._fillfixtures() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:22 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:22 fixturedef = self._get_active_fixturedef(argname) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:22 fixturedef.execute(request=subrequest) 05:15:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:22 05:15:22 self = 05:15:22 request = > 05:15:22 05:15:22 def execute(self, request: SubRequest) -> FixtureValue: 05:15:22 """Return the value of this fixture, executing it if not cached.""" 05:15:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:22 # This needs to be done before checking if we have a cached value, since 05:15:22 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:22 # parametrization, they finalize themselves and fixtures depending on it 05:15:22 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:22 # See #4871 05:15:22 requested_fixtures_that_should_finalize_us = [] 05:15:22 for argname in self.argnames: 05:15:22 fixturedef = request._get_active_fixturedef(argname) 05:15:22 # Saves requested fixtures in a list so we later can add our finalizer 05:15:22 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:22 # down first. This is generally handled by SetupState, but still currently 05:15:22 # needed when this fixture is not parametrized but depends on a parametrized 05:15:22 # fixture. 05:15:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:22 05:15:22 # Check for (and return) cached value/exception. 05:15:22 if self.cached_result is not None: 05:15:22 request_cache_key = self.cache_key(request) 05:15:22 cache_key = self.cached_result[1] 05:15:22 try: 05:15:22 # Attempt to make a normal == check: this might fail for objects 05:15:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:22 cache_hit = bool(request_cache_key == cache_key) 05:15:22 except (ValueError, RuntimeError): 05:15:22 # If the comparison raises, use 'is' as fallback. 05:15:22 cache_hit = request_cache_key is cache_key 05:15:22 05:15:22 if cache_hit: 05:15:22 if self.cached_result[2] is not None: 05:15:22 exc, exc_tb = self.cached_result[2] 05:15:22 raise exc.with_traceback(exc_tb) 05:15:22 else: 05:15:22 return self.cached_result[0] 05:15:22 # We have a previous but differently parametrized fixture instance 05:15:22 # so we need to tear it down before creating a new one. 05:15:22 self.finish(request) 05:15:22 assert self.cached_result is None 05:15:22 05:15:22 # Add finalizer to requested fixtures we saved previously. 05:15:22 # We make sure to do this after checking for cached value to avoid 05:15:22 # adding our finalizer multiple times. (#12135) 05:15:22 finalizer = functools.partial(self.finish, request=request) 05:15:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:22 parent_fixture.addfinalizer(finalizer) 05:15:22 05:15:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:22 # which is executed last. 05:15:22 > assert not self._finalizers 05:15:22 ^^^^^^^^^^^^^^^^^^^^ 05:15:22 E AssertionError 05:15:22 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:22 ___ ERROR at setup of TestTransportPCEPortmapping.test_08_check_mccapprofile ___ 05:15:22 05:15:22 cls = 05:15:22 func = . at 0x7f09627c3a60> 05:15:22 when = 'setup' 05:15:22 reraise = (, ) 05:15:22 05:15:22 @classmethod 05:15:22 def from_call( 05:15:22 cls, 05:15:22 func: Callable[[], TResult], 05:15:22 when: Literal["collect", "setup", "call", "teardown"], 05:15:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:22 ) -> CallInfo[TResult]: 05:15:22 """Call func, wrapping the result in a CallInfo. 05:15:22 05:15:22 :param func: 05:15:22 The function to call. Called without arguments. 05:15:22 :type func: Callable[[], _pytest.runner.TResult] 05:15:22 :param when: 05:15:22 The phase in which the function is called. 05:15:22 :param reraise: 05:15:22 Exception or exceptions that shall propagate if raised by the 05:15:22 function, instead of being wrapped in the CallInfo. 05:15:22 """ 05:15:22 excinfo = None 05:15:22 instant = timing.Instant() 05:15:22 try: 05:15:22 > result: TResult | None = func() 05:15:22 ^^^^^^ 05:15:22 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:22 lambda: runtest_hook(item=item, **kwds), 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:22 yield 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:22 return (yield) 05:15:22 ^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:22 item.session._setupstate.setup(item) 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:22 col.setup() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:22 super().setup() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:22 self._request._fillfixtures() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:22 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:22 fixturedef = self._get_active_fixturedef(argname) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:22 fixturedef.execute(request=subrequest) 05:15:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:22 05:15:22 self = 05:15:22 request = > 05:15:22 05:15:22 def execute(self, request: SubRequest) -> FixtureValue: 05:15:22 """Return the value of this fixture, executing it if not cached.""" 05:15:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:22 # This needs to be done before checking if we have a cached value, since 05:15:22 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:22 # parametrization, they finalize themselves and fixtures depending on it 05:15:22 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:22 # See #4871 05:15:22 requested_fixtures_that_should_finalize_us = [] 05:15:22 for argname in self.argnames: 05:15:22 fixturedef = request._get_active_fixturedef(argname) 05:15:22 # Saves requested fixtures in a list so we later can add our finalizer 05:15:22 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:22 # down first. This is generally handled by SetupState, but still currently 05:15:22 # needed when this fixture is not parametrized but depends on a parametrized 05:15:22 # fixture. 05:15:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:22 05:15:22 # Check for (and return) cached value/exception. 05:15:22 if self.cached_result is not None: 05:15:22 request_cache_key = self.cache_key(request) 05:15:22 cache_key = self.cached_result[1] 05:15:22 try: 05:15:22 # Attempt to make a normal == check: this might fail for objects 05:15:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:22 cache_hit = bool(request_cache_key == cache_key) 05:15:22 except (ValueError, RuntimeError): 05:15:22 # If the comparison raises, use 'is' as fallback. 05:15:22 cache_hit = request_cache_key is cache_key 05:15:22 05:15:22 if cache_hit: 05:15:22 if self.cached_result[2] is not None: 05:15:22 exc, exc_tb = self.cached_result[2] 05:15:22 raise exc.with_traceback(exc_tb) 05:15:22 else: 05:15:22 return self.cached_result[0] 05:15:22 # We have a previous but differently parametrized fixture instance 05:15:22 # so we need to tear it down before creating a new one. 05:15:22 self.finish(request) 05:15:22 assert self.cached_result is None 05:15:22 05:15:22 # Add finalizer to requested fixtures we saved previously. 05:15:22 # We make sure to do this after checking for cached value to avoid 05:15:22 # adding our finalizer multiple times. (#12135) 05:15:22 finalizer = functools.partial(self.finish, request=request) 05:15:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:22 parent_fixture.addfinalizer(finalizer) 05:15:22 05:15:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:22 # which is executed last. 05:15:22 > assert not self._finalizers 05:15:22 ^^^^^^^^^^^^^^^^^^^^ 05:15:22 E AssertionError 05:15:22 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:22 __ ERROR at setup of TestTransportPCEPortmapping.test_09_mpdr_switching_pool ___ 05:15:22 05:15:22 cls = 05:15:22 func = . at 0x7f09627c1120> 05:15:22 when = 'setup' 05:15:22 reraise = (, ) 05:15:22 05:15:22 @classmethod 05:15:22 def from_call( 05:15:22 cls, 05:15:22 func: Callable[[], TResult], 05:15:22 when: Literal["collect", "setup", "call", "teardown"], 05:15:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:22 ) -> CallInfo[TResult]: 05:15:22 """Call func, wrapping the result in a CallInfo. 05:15:22 05:15:22 :param func: 05:15:22 The function to call. Called without arguments. 05:15:22 :type func: Callable[[], _pytest.runner.TResult] 05:15:22 :param when: 05:15:22 The phase in which the function is called. 05:15:22 :param reraise: 05:15:22 Exception or exceptions that shall propagate if raised by the 05:15:22 function, instead of being wrapped in the CallInfo. 05:15:22 """ 05:15:22 excinfo = None 05:15:22 instant = timing.Instant() 05:15:22 try: 05:15:22 > result: TResult | None = func() 05:15:22 ^^^^^^ 05:15:22 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:22 lambda: runtest_hook(item=item, **kwds), 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:22 yield 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:22 return (yield) 05:15:22 ^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:22 item.session._setupstate.setup(item) 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:22 col.setup() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:22 super().setup() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:22 self._request._fillfixtures() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:22 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:22 fixturedef = self._get_active_fixturedef(argname) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:22 fixturedef.execute(request=subrequest) 05:15:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:22 05:15:22 self = 05:15:22 request = > 05:15:22 05:15:22 def execute(self, request: SubRequest) -> FixtureValue: 05:15:22 """Return the value of this fixture, executing it if not cached.""" 05:15:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:22 # This needs to be done before checking if we have a cached value, since 05:15:22 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:22 # parametrization, they finalize themselves and fixtures depending on it 05:15:22 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:22 # See #4871 05:15:22 requested_fixtures_that_should_finalize_us = [] 05:15:22 for argname in self.argnames: 05:15:22 fixturedef = request._get_active_fixturedef(argname) 05:15:22 # Saves requested fixtures in a list so we later can add our finalizer 05:15:22 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:22 # down first. This is generally handled by SetupState, but still currently 05:15:22 # needed when this fixture is not parametrized but depends on a parametrized 05:15:22 # fixture. 05:15:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:22 05:15:22 # Check for (and return) cached value/exception. 05:15:22 if self.cached_result is not None: 05:15:22 request_cache_key = self.cache_key(request) 05:15:22 cache_key = self.cached_result[1] 05:15:22 try: 05:15:22 # Attempt to make a normal == check: this might fail for objects 05:15:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:22 cache_hit = bool(request_cache_key == cache_key) 05:15:22 except (ValueError, RuntimeError): 05:15:22 # If the comparison raises, use 'is' as fallback. 05:15:22 cache_hit = request_cache_key is cache_key 05:15:22 05:15:22 if cache_hit: 05:15:22 if self.cached_result[2] is not None: 05:15:22 exc, exc_tb = self.cached_result[2] 05:15:22 raise exc.with_traceback(exc_tb) 05:15:22 else: 05:15:22 return self.cached_result[0] 05:15:22 # We have a previous but differently parametrized fixture instance 05:15:22 # so we need to tear it down before creating a new one. 05:15:22 self.finish(request) 05:15:22 assert self.cached_result is None 05:15:22 05:15:22 # Add finalizer to requested fixtures we saved previously. 05:15:22 # We make sure to do this after checking for cached value to avoid 05:15:22 # adding our finalizer multiple times. (#12135) 05:15:22 finalizer = functools.partial(self.finish, request=request) 05:15:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:22 parent_fixture.addfinalizer(finalizer) 05:15:22 05:15:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:22 # which is executed last. 05:15:22 > assert not self._finalizers 05:15:22 ^^^^^^^^^^^^^^^^^^^^ 05:15:22 E AssertionError 05:15:22 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:22 _ ERROR at setup of TestTransportPCEPortmapping.test_10_xpdr_device_disconnection _ 05:15:22 05:15:22 cls = 05:15:22 func = . at 0x7f09627c37e0> 05:15:22 when = 'setup' 05:15:22 reraise = (, ) 05:15:22 05:15:22 @classmethod 05:15:22 def from_call( 05:15:22 cls, 05:15:22 func: Callable[[], TResult], 05:15:22 when: Literal["collect", "setup", "call", "teardown"], 05:15:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:22 ) -> CallInfo[TResult]: 05:15:22 """Call func, wrapping the result in a CallInfo. 05:15:22 05:15:22 :param func: 05:15:22 The function to call. Called without arguments. 05:15:22 :type func: Callable[[], _pytest.runner.TResult] 05:15:22 :param when: 05:15:22 The phase in which the function is called. 05:15:22 :param reraise: 05:15:22 Exception or exceptions that shall propagate if raised by the 05:15:22 function, instead of being wrapped in the CallInfo. 05:15:22 """ 05:15:22 excinfo = None 05:15:22 instant = timing.Instant() 05:15:22 try: 05:15:22 > result: TResult | None = func() 05:15:22 ^^^^^^ 05:15:22 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:22 lambda: runtest_hook(item=item, **kwds), 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:22 yield 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:22 return (yield) 05:15:22 ^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:22 item.session._setupstate.setup(item) 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:22 col.setup() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:22 super().setup() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:22 self._request._fillfixtures() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:22 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:22 fixturedef = self._get_active_fixturedef(argname) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:22 fixturedef.execute(request=subrequest) 05:15:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:22 05:15:22 self = 05:15:22 request = > 05:15:22 05:15:22 def execute(self, request: SubRequest) -> FixtureValue: 05:15:22 """Return the value of this fixture, executing it if not cached.""" 05:15:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:22 # This needs to be done before checking if we have a cached value, since 05:15:22 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:22 # parametrization, they finalize themselves and fixtures depending on it 05:15:22 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:22 # See #4871 05:15:22 requested_fixtures_that_should_finalize_us = [] 05:15:22 for argname in self.argnames: 05:15:22 fixturedef = request._get_active_fixturedef(argname) 05:15:22 # Saves requested fixtures in a list so we later can add our finalizer 05:15:22 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:22 # down first. This is generally handled by SetupState, but still currently 05:15:22 # needed when this fixture is not parametrized but depends on a parametrized 05:15:22 # fixture. 05:15:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:22 05:15:22 # Check for (and return) cached value/exception. 05:15:22 if self.cached_result is not None: 05:15:22 request_cache_key = self.cache_key(request) 05:15:22 cache_key = self.cached_result[1] 05:15:22 try: 05:15:22 # Attempt to make a normal == check: this might fail for objects 05:15:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:22 cache_hit = bool(request_cache_key == cache_key) 05:15:22 except (ValueError, RuntimeError): 05:15:22 # If the comparison raises, use 'is' as fallback. 05:15:22 cache_hit = request_cache_key is cache_key 05:15:22 05:15:22 if cache_hit: 05:15:22 if self.cached_result[2] is not None: 05:15:22 exc, exc_tb = self.cached_result[2] 05:15:22 raise exc.with_traceback(exc_tb) 05:15:22 else: 05:15:22 return self.cached_result[0] 05:15:22 # We have a previous but differently parametrized fixture instance 05:15:22 # so we need to tear it down before creating a new one. 05:15:22 self.finish(request) 05:15:22 assert self.cached_result is None 05:15:22 05:15:22 # Add finalizer to requested fixtures we saved previously. 05:15:22 # We make sure to do this after checking for cached value to avoid 05:15:22 # adding our finalizer multiple times. (#12135) 05:15:22 finalizer = functools.partial(self.finish, request=request) 05:15:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:22 parent_fixture.addfinalizer(finalizer) 05:15:22 05:15:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:22 # which is executed last. 05:15:22 > assert not self._finalizers 05:15:22 ^^^^^^^^^^^^^^^^^^^^ 05:15:22 E AssertionError 05:15:22 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:22 _ ERROR at setup of TestTransportPCEPortmapping.test_11_xpdr_device_disconnected _ 05:15:22 05:15:22 cls = 05:15:22 func = . at 0x7f09627c3600> 05:15:22 when = 'setup' 05:15:22 reraise = (, ) 05:15:22 05:15:22 @classmethod 05:15:22 def from_call( 05:15:22 cls, 05:15:22 func: Callable[[], TResult], 05:15:22 when: Literal["collect", "setup", "call", "teardown"], 05:15:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:22 ) -> CallInfo[TResult]: 05:15:22 """Call func, wrapping the result in a CallInfo. 05:15:22 05:15:22 :param func: 05:15:22 The function to call. Called without arguments. 05:15:22 :type func: Callable[[], _pytest.runner.TResult] 05:15:22 :param when: 05:15:22 The phase in which the function is called. 05:15:22 :param reraise: 05:15:22 Exception or exceptions that shall propagate if raised by the 05:15:22 function, instead of being wrapped in the CallInfo. 05:15:22 """ 05:15:22 excinfo = None 05:15:22 instant = timing.Instant() 05:15:22 try: 05:15:22 > result: TResult | None = func() 05:15:22 ^^^^^^ 05:15:22 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:22 lambda: runtest_hook(item=item, **kwds), 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:22 yield 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:22 return (yield) 05:15:22 ^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:22 item.session._setupstate.setup(item) 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:22 col.setup() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:22 super().setup() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:22 self._request._fillfixtures() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:22 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:22 fixturedef = self._get_active_fixturedef(argname) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:22 fixturedef.execute(request=subrequest) 05:15:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:22 05:15:22 self = 05:15:22 request = > 05:15:22 05:15:22 def execute(self, request: SubRequest) -> FixtureValue: 05:15:22 """Return the value of this fixture, executing it if not cached.""" 05:15:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:22 # This needs to be done before checking if we have a cached value, since 05:15:22 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:22 # parametrization, they finalize themselves and fixtures depending on it 05:15:22 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:22 # See #4871 05:15:22 requested_fixtures_that_should_finalize_us = [] 05:15:22 for argname in self.argnames: 05:15:22 fixturedef = request._get_active_fixturedef(argname) 05:15:22 # Saves requested fixtures in a list so we later can add our finalizer 05:15:22 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:22 # down first. This is generally handled by SetupState, but still currently 05:15:22 # needed when this fixture is not parametrized but depends on a parametrized 05:15:22 # fixture. 05:15:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:22 05:15:22 # Check for (and return) cached value/exception. 05:15:22 if self.cached_result is not None: 05:15:22 request_cache_key = self.cache_key(request) 05:15:22 cache_key = self.cached_result[1] 05:15:22 try: 05:15:22 # Attempt to make a normal == check: this might fail for objects 05:15:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:22 cache_hit = bool(request_cache_key == cache_key) 05:15:22 except (ValueError, RuntimeError): 05:15:22 # If the comparison raises, use 'is' as fallback. 05:15:22 cache_hit = request_cache_key is cache_key 05:15:22 05:15:22 if cache_hit: 05:15:22 if self.cached_result[2] is not None: 05:15:22 exc, exc_tb = self.cached_result[2] 05:15:22 raise exc.with_traceback(exc_tb) 05:15:22 else: 05:15:22 return self.cached_result[0] 05:15:22 # We have a previous but differently parametrized fixture instance 05:15:22 # so we need to tear it down before creating a new one. 05:15:22 self.finish(request) 05:15:22 assert self.cached_result is None 05:15:22 05:15:22 # Add finalizer to requested fixtures we saved previously. 05:15:22 # We make sure to do this after checking for cached value to avoid 05:15:22 # adding our finalizer multiple times. (#12135) 05:15:22 finalizer = functools.partial(self.finish, request=request) 05:15:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:22 parent_fixture.addfinalizer(finalizer) 05:15:22 05:15:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:22 # which is executed last. 05:15:22 > assert not self._finalizers 05:15:22 ^^^^^^^^^^^^^^^^^^^^ 05:15:22 E AssertionError 05:15:22 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:22 _ ERROR at setup of TestTransportPCEPortmapping.test_12_xpdr_device_not_connected _ 05:15:22 05:15:22 cls = 05:15:22 func = . at 0x7f09627c1120> 05:15:22 when = 'setup' 05:15:22 reraise = (, ) 05:15:22 05:15:22 @classmethod 05:15:22 def from_call( 05:15:22 cls, 05:15:22 func: Callable[[], TResult], 05:15:22 when: Literal["collect", "setup", "call", "teardown"], 05:15:22 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:22 ) -> CallInfo[TResult]: 05:15:22 """Call func, wrapping the result in a CallInfo. 05:15:22 05:15:22 :param func: 05:15:22 The function to call. Called without arguments. 05:15:22 :type func: Callable[[], _pytest.runner.TResult] 05:15:22 :param when: 05:15:22 The phase in which the function is called. 05:15:22 :param reraise: 05:15:22 Exception or exceptions that shall propagate if raised by the 05:15:22 function, instead of being wrapped in the CallInfo. 05:15:22 """ 05:15:22 excinfo = None 05:15:22 instant = timing.Instant() 05:15:22 try: 05:15:22 > result: TResult | None = func() 05:15:22 ^^^^^^ 05:15:22 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:22 lambda: runtest_hook(item=item, **kwds), 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:22 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:22 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:22 yield 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:22 return (yield) 05:15:22 ^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:22 item.session._setupstate.setup(item) 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:22 col.setup() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:22 super().setup() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:22 self._request._fillfixtures() 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:22 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:22 fixturedef = self._get_active_fixturedef(argname) 05:15:22 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:22 fixturedef.execute(request=subrequest) 05:15:22 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:22 05:15:22 self = 05:15:22 request = > 05:15:22 05:15:22 def execute(self, request: SubRequest) -> FixtureValue: 05:15:22 """Return the value of this fixture, executing it if not cached.""" 05:15:22 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:22 # This needs to be done before checking if we have a cached value, since 05:15:22 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:22 # parametrization, they finalize themselves and fixtures depending on it 05:15:22 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:22 # See #4871 05:15:22 requested_fixtures_that_should_finalize_us = [] 05:15:22 for argname in self.argnames: 05:15:22 fixturedef = request._get_active_fixturedef(argname) 05:15:22 # Saves requested fixtures in a list so we later can add our finalizer 05:15:22 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:22 # down first. This is generally handled by SetupState, but still currently 05:15:22 # needed when this fixture is not parametrized but depends on a parametrized 05:15:22 # fixture. 05:15:22 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:22 05:15:22 # Check for (and return) cached value/exception. 05:15:22 if self.cached_result is not None: 05:15:22 request_cache_key = self.cache_key(request) 05:15:22 cache_key = self.cached_result[1] 05:15:22 try: 05:15:22 # Attempt to make a normal == check: this might fail for objects 05:15:22 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:22 cache_hit = bool(request_cache_key == cache_key) 05:15:22 except (ValueError, RuntimeError): 05:15:22 # If the comparison raises, use 'is' as fallback. 05:15:22 cache_hit = request_cache_key is cache_key 05:15:22 05:15:22 if cache_hit: 05:15:22 if self.cached_result[2] is not None: 05:15:22 exc, exc_tb = self.cached_result[2] 05:15:22 raise exc.with_traceback(exc_tb) 05:15:22 else: 05:15:22 return self.cached_result[0] 05:15:22 # We have a previous but differently parametrized fixture instance 05:15:22 # so we need to tear it down before creating a new one. 05:15:22 self.finish(request) 05:15:22 assert self.cached_result is None 05:15:22 05:15:22 # Add finalizer to requested fixtures we saved previously. 05:15:22 # We make sure to do this after checking for cached value to avoid 05:15:22 # adding our finalizer multiple times. (#12135) 05:15:22 finalizer = functools.partial(self.finish, request=request) 05:15:22 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:22 parent_fixture.addfinalizer(finalizer) 05:15:22 05:15:22 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:22 # which is executed last. 05:15:22 > assert not self._finalizers 05:15:22 ^^^^^^^^^^^^^^^^^^^^ 05:15:22 E AssertionError 05:15:22 05:15:22 ../.tox/tests71/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:22 =========================== short test summary info ============================ 05:15:22 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_01_xpdr_device_connection 05:15:22 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_02_xpdr_device_connected 05:15:22 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_03_xpdr_portmapping_info 05:15:22 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_04_tpdr_portmapping_NETWORK1 05:15:22 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_05_tpdr_portmapping_CLIENT1 05:15:22 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_06_mpdr_portmapping_NETWORK1 05:15:22 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_07_mpdr_portmapping_CLIENT1 05:15:22 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_08_check_mccapprofile 05:15:22 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_09_mpdr_switching_pool 05:15:22 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_10_xpdr_device_disconnection 05:15:22 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_11_xpdr_device_disconnected 05:15:22 ERROR transportpce_tests/7.1/test01_portmapping.py::TestTransportPCEPortmapping::test_12_xpdr_device_not_connected 05:15:22 12 errors in 102.36s (0:01:42) 05:15:22 tests71: exit 1 (102.64 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh 7.1 pid=5397 05:15:23 EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE [100%] 05:15:32 ==================================== ERRORS ==================================== 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_01_connect_xpdrA _ 05:15:32 05:15:32 cls = 05:15:32 05:15:32 @classmethod 05:15:32 def setUpClass(cls): 05:15:32 > cls.processes = test_utils.start_tpce() 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 05:15:32 transportpce_tests/hybrid/test01_device_change_notifications.py:76: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 def start_tpce(): 05:15:32 if 'NO_ODL_STARTUP' in os.environ: 05:15:32 print('No OpenDaylight instance to start!') 05:15:32 return [] 05:15:32 print('starting OpenDaylight...') 05:15:32 if 'USE_LIGHTY' in os.environ and os.environ['USE_LIGHTY'] == 'True': 05:15:32 process = start_lighty() 05:15:32 else: 05:15:32 process = start_karaf() 05:15:32 if wait_until_log_contains(TPCE_LOG, [LIGHTY_OK_START_MSG, KARAF_OK_START_MSG], time_to_wait=100): 05:15:32 print('OpenDaylight started !') 05:15:32 else: 05:15:32 print('OpenDaylight failed to start !') 05:15:32 shutdown_process(process) 05:15:32 for pid in process_list: 05:15:32 shutdown_process(pid) 05:15:32 > sys.exit(1) 05:15:32 E SystemExit: 1 05:15:32 05:15:32 transportpce_tests/common/test_utils.py:234: SystemExit 05:15:32 ---------------------------- Captured stdout setup ----------------------------- 05:15:32 starting OpenDaylight... 05:15:32 starting KARAF (karaf221) TransportPCE build... 05:15:32 Pattern not found after 100 seconds! OpenDaylight failed to start ! 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_02_connect_xpdrC _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206ec9ea20> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_03_connect_rdmA _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206ecf3f60> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_04_connect_rdmC _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f207139af20> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_05_connect_xpdrA_N1_to_roadmA_PP1 _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206ec9d440> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_06_connect_roadmA_PP1_to_xpdrA_N1 _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f20706093a0> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_07_connect_xpdrC_N1_to_roadmC_PP1 _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206ec9d440> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_08_connect_roadmC_PP1_to_xpdrC_N1 _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206ecf2700> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_09_add_omsAttributes_ROADMA_ROADMC _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206ecf2980> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_10_add_omsAttributes_ROADMC_ROADMA _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206ecf2700> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_11_create_eth_service1 _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206ec9d440> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_12_get_eth_service1 _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206e6c9940> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_13_change_status_line_port_xpdra _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206ecf2700> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_14_check_update_portmapping _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206ec9d440> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_15_check_update_openroadm_topo _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206e6c9da0> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_16_check_update_service1 _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206ec9d440> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_17_restore_status_line_port_xpdra _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206ec9d8a0> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_18_check_update_portmapping_ok _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206ecf28e0> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_19_check_update_openroadm_topo_ok _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206ec9d8a0> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_20_check_update_service1_ok _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206ecf2d40> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_21_change_status_port_roadma_srg _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206ecf28e0> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_22_check_update_portmapping _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206ecf2d40> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_23_check_update_openroadm_topo _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206e6ca0c0> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_24_restore_status_port_roadma_srg _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206ecf2d40> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_25_check_update_portmapping_ok _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206e6ca0c0> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_26_check_update_openroadm_topo_ok _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206e6c8860> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_27_check_update_service1_ok _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206ecf2d40> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_28_change_status_line_port_roadma_deg _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206e6c9440> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_29_check_update_portmapping _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206e6c9260> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_30_check_update_openroadm_topo _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206ecf2d40> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_31_restore_status_line_port_roadma_srg _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206e6c96c0> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_32_check_update_portmapping_ok _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206e6c9800> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_33_check_update_openroadm_topo_ok _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206ecf2d40> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_34_check_update_service1_ok _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206e6c9d00> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_35_change_status_line_port_xpdrc _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206e6c9800> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_36_check_update_portmapping _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206ecf2d40> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_37_check_update_openroadm_topo _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206e6c9f80> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_38_restore_status_line_port_xpdrc _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206ecf2d40> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_39_check_update_portmapping_ok _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206e6c8ea0> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_40_check_update_openroadm_topo_ok _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206e6c9a80> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_41_check_update_service1_ok _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206ecf2d40> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_42_change_status_port_roadma_srg _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206e6c9a80> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_43_check_update_portmapping _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206e6caa20> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_44_check_update_openroadm_topo _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206ecf2d40> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_45_check_update_service1_ok _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206e6c99e0> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_46_delete_eth_service1 _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206e6c9bc0> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_47_disconnect_xponders_from_roadm _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206ecf2d40> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_48_disconnect_XPDRA _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206e6c9f80> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_49_disconnect_XPDRC _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206e6ca5c0> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_50_disconnect_ROADMA _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206ecf2d40> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 _ ERROR at setup of TestTransportPCEDeviceChangeNotifications.test_51_disconnect_ROADMC _ 05:15:32 05:15:32 cls = 05:15:32 func = . at 0x7f206e6ca2a0> 05:15:32 when = 'setup' 05:15:32 reraise = (, ) 05:15:32 05:15:32 @classmethod 05:15:32 def from_call( 05:15:32 cls, 05:15:32 func: Callable[[], TResult], 05:15:32 when: Literal["collect", "setup", "call", "teardown"], 05:15:32 reraise: type[BaseException] | tuple[type[BaseException], ...] | None = None, 05:15:32 ) -> CallInfo[TResult]: 05:15:32 """Call func, wrapping the result in a CallInfo. 05:15:32 05:15:32 :param func: 05:15:32 The function to call. Called without arguments. 05:15:32 :type func: Callable[[], _pytest.runner.TResult] 05:15:32 :param when: 05:15:32 The phase in which the function is called. 05:15:32 :param reraise: 05:15:32 Exception or exceptions that shall propagate if raised by the 05:15:32 function, instead of being wrapped in the CallInfo. 05:15:32 """ 05:15:32 excinfo = None 05:15:32 instant = timing.Instant() 05:15:32 try: 05:15:32 > result: TResult | None = func() 05:15:32 ^^^^^^ 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:361: 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:250: in 05:15:32 lambda: runtest_hook(item=item, **kwds), 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_hooks.py:512: in __call__ 05:15:32 return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/pluggy/_manager.py:120: in _hookexec 05:15:32 return self._inner_hookexec(hook_name, methods, kwargs, firstresult) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/logging.py:858: in pytest_runtest_setup 05:15:32 yield 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/capture.py:895: in pytest_runtest_setup 05:15:32 return (yield) 05:15:32 ^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:170: in pytest_runtest_setup 05:15:32 item.session._setupstate.setup(item) 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/runner.py:536: in setup 05:15:32 col.setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/unittest.py:248: in setup 05:15:32 super().setup() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/python.py:1710: in setup 05:15:32 self._request._fillfixtures() 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:806: in _fillfixtures 05:15:32 item.funcargs[argname] = self.getfixturevalue(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:630: in getfixturevalue 05:15:32 fixturedef = self._get_active_fixturedef(argname) 05:15:32 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:726: in _get_active_fixturedef 05:15:32 fixturedef.execute(request=subrequest) 05:15:32 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 05:15:32 05:15:32 self = 05:15:32 request = > 05:15:32 05:15:32 def execute(self, request: SubRequest) -> FixtureValue: 05:15:32 """Return the value of this fixture, executing it if not cached.""" 05:15:32 # Ensure that the dependent fixtures requested by this fixture are loaded. 05:15:32 # This needs to be done before checking if we have a cached value, since 05:15:32 # if a dependent fixture has their cache invalidated, e.g. due to 05:15:32 # parametrization, they finalize themselves and fixtures depending on it 05:15:32 # (which will likely include this fixture) setting `self.cached_result = None`. 05:15:32 # See #4871 05:15:32 requested_fixtures_that_should_finalize_us = [] 05:15:32 for argname in self.argnames: 05:15:32 fixturedef = request._get_active_fixturedef(argname) 05:15:32 # Saves requested fixtures in a list so we later can add our finalizer 05:15:32 # to them, ensuring that if a requested fixture gets torn down we get torn 05:15:32 # down first. This is generally handled by SetupState, but still currently 05:15:32 # needed when this fixture is not parametrized but depends on a parametrized 05:15:32 # fixture. 05:15:32 requested_fixtures_that_should_finalize_us.append(fixturedef) 05:15:32 05:15:32 # Check for (and return) cached value/exception. 05:15:32 if self.cached_result is not None: 05:15:32 request_cache_key = self.cache_key(request) 05:15:32 cache_key = self.cached_result[1] 05:15:32 try: 05:15:32 # Attempt to make a normal == check: this might fail for objects 05:15:32 # which do not implement the standard comparison (like numpy arrays -- #6497). 05:15:32 cache_hit = bool(request_cache_key == cache_key) 05:15:32 except (ValueError, RuntimeError): 05:15:32 # If the comparison raises, use 'is' as fallback. 05:15:32 cache_hit = request_cache_key is cache_key 05:15:32 05:15:32 if cache_hit: 05:15:32 if self.cached_result[2] is not None: 05:15:32 exc, exc_tb = self.cached_result[2] 05:15:32 raise exc.with_traceback(exc_tb) 05:15:32 else: 05:15:32 return self.cached_result[0] 05:15:32 # We have a previous but differently parametrized fixture instance 05:15:32 # so we need to tear it down before creating a new one. 05:15:32 self.finish(request) 05:15:32 assert self.cached_result is None 05:15:32 05:15:32 # Add finalizer to requested fixtures we saved previously. 05:15:32 # We make sure to do this after checking for cached value to avoid 05:15:32 # adding our finalizer multiple times. (#12135) 05:15:32 finalizer = functools.partial(self.finish, request=request) 05:15:32 for parent_fixture in requested_fixtures_that_should_finalize_us: 05:15:32 parent_fixture.addfinalizer(finalizer) 05:15:32 05:15:32 # Register the pytest_fixture_post_finalizer as the first finalizer, 05:15:32 # which is executed last. 05:15:32 > assert not self._finalizers 05:15:32 ^^^^^^^^^^^^^^^^^^^^ 05:15:32 E AssertionError 05:15:32 05:15:32 ../.tox/tests_hybrid/lib/python3.11/site-packages/_pytest/fixtures.py:1221: AssertionError 05:15:32 =========================== short test summary info ============================ 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_01_connect_xpdrA 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_02_connect_xpdrC 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_03_connect_rdmA 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_04_connect_rdmC 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_05_connect_xpdrA_N1_to_roadmA_PP1 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_06_connect_roadmA_PP1_to_xpdrA_N1 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_07_connect_xpdrC_N1_to_roadmC_PP1 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_08_connect_roadmC_PP1_to_xpdrC_N1 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_09_add_omsAttributes_ROADMA_ROADMC 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_10_add_omsAttributes_ROADMC_ROADMA 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_11_create_eth_service1 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_12_get_eth_service1 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_13_change_status_line_port_xpdra 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_14_check_update_portmapping 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_15_check_update_openroadm_topo 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_16_check_update_service1 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_17_restore_status_line_port_xpdra 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_18_check_update_portmapping_ok 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_19_check_update_openroadm_topo_ok 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_20_check_update_service1_ok 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_21_change_status_port_roadma_srg 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_22_check_update_portmapping 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_23_check_update_openroadm_topo 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_24_restore_status_port_roadma_srg 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_25_check_update_portmapping_ok 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_26_check_update_openroadm_topo_ok 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_27_check_update_service1_ok 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_28_change_status_line_port_roadma_deg 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_29_check_update_portmapping 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_30_check_update_openroadm_topo 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_31_restore_status_line_port_roadma_srg 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_32_check_update_portmapping_ok 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_33_check_update_openroadm_topo_ok 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_34_check_update_service1_ok 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_35_change_status_line_port_xpdrc 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_36_check_update_portmapping 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_37_check_update_openroadm_topo 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_38_restore_status_line_port_xpdrc 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_39_check_update_portmapping_ok 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_40_check_update_openroadm_topo_ok 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_41_check_update_service1_ok 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_42_change_status_port_roadma_srg 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_43_check_update_portmapping 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_44_check_update_openroadm_topo 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_45_check_update_service1_ok 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_46_delete_eth_service1 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_47_disconnect_xponders_from_roadm 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_48_disconnect_XPDRA 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_49_disconnect_XPDRC 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_50_disconnect_ROADMA 05:15:32 ERROR transportpce_tests/hybrid/test01_device_change_notifications.py::TestTransportPCEDeviceChangeNotifications::test_51_disconnect_ROADMC 05:15:32 51 errors in 109.44s (0:01:49) 05:15:32 tests71: FAIL ✖ in 1 minute 51.14 seconds 05:15:32 tests_hybrid: exit 1 (109.73 seconds) /w/workspace/transportpce-tox-verify-transportpce-master/tests> ./launch_tests.sh hybrid pid=5413 05:15:32 buildcontroller: FAIL code 1 (9.18=setup[8.59]+cmd[0.60] seconds) 05:15:32 sims: OK (9.67=setup[6.94]+cmd[2.73] seconds) 05:15:32 testsPCE: FAIL code 1 (170.12=setup[46.10]+cmd[124.02] seconds) 05:15:32 build_karaf_tests221: FAIL code 127 (6.61=setup[6.61]+cmd[0.00] seconds) 05:15:32 tests_tapi: FAIL code 1 (118.45=setup[8.44]+cmd[110.01] seconds) 05:15:32 tests221: FAIL code 1 (115.52=setup[8.71]+cmd[106.81] seconds) 05:15:32 build_karaf_tests71: FAIL code 127 (6.62=setup[6.61]+cmd[0.01] seconds) 05:15:32 tests71: FAIL code 1 (111.14=setup[8.50]+cmd[102.64] seconds) 05:15:32 build_karaf_tests200: FAIL code 127 (6.49=setup[6.48]+cmd[0.01] seconds) 05:15:32 tests200: FAIL code 1 (110.84=setup[8.62]+cmd[102.22] seconds) 05:15:32 tests_hybrid: FAIL code 1 (116.14=setup[6.41]+cmd[109.73] seconds) 05:15:32 buildlighty: FAIL code 9 (6.62=setup[6.61]+cmd[0.01] seconds) 05:15:32 docs: OK (19.01=setup[16.69]+cmd[2.32] seconds) 05:15:32 docs-linkcheck: OK (21.39=setup[16.63]+cmd[4.76] seconds) 05:15:32 checkbashisms: OK (2.98=setup[1.80]+cmd[0.01,0.04,1.14] seconds) 05:15:32 pre-commit: OK (58.23=setup[3.18]+cmd[0.00,0.01,46.07,8.97] seconds) 05:15:32 pylint: FAIL code 1 (21.33=setup[3.60]+cmd[17.73] seconds) 05:15:32 evaluation failed :( (552.38 seconds) 05:15:32 + tox_status=1 05:15:32 + echo '---> Completed tox runs' 05:15:32 ---> Completed tox runs 05:15:32 + for i in .tox/*/log 05:15:32 ++ echo .tox/build_karaf_tests200/log 05:15:32 ++ awk -F/ '{print $2}' 05:15:32 + tox_env=build_karaf_tests200 05:15:32 + cp -r .tox/build_karaf_tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests200 05:15:32 + for i in .tox/*/log 05:15:32 ++ echo .tox/build_karaf_tests221/log 05:15:32 ++ awk -F/ '{print $2}' 05:15:32 + tox_env=build_karaf_tests221 05:15:32 + cp -r .tox/build_karaf_tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests221 05:15:32 + for i in .tox/*/log 05:15:32 ++ echo .tox/build_karaf_tests71/log 05:15:32 ++ awk -F/ '{print $2}' 05:15:32 + tox_env=build_karaf_tests71 05:15:32 + cp -r .tox/build_karaf_tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/build_karaf_tests71 05:15:32 + for i in .tox/*/log 05:15:32 ++ echo .tox/buildcontroller/log 05:15:32 ++ awk -F/ '{print $2}' 05:15:32 + tox_env=buildcontroller 05:15:32 + cp -r .tox/buildcontroller/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildcontroller 05:15:32 + for i in .tox/*/log 05:15:32 ++ echo .tox/buildlighty/log 05:15:32 ++ awk -F/ '{print $2}' 05:15:32 + tox_env=buildlighty 05:15:32 + cp -r .tox/buildlighty/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/buildlighty 05:15:32 + for i in .tox/*/log 05:15:32 ++ echo .tox/checkbashisms/log 05:15:32 ++ awk -F/ '{print $2}' 05:15:32 + tox_env=checkbashisms 05:15:32 + cp -r .tox/checkbashisms/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/checkbashisms 05:15:32 + for i in .tox/*/log 05:15:32 ++ echo .tox/docs-linkcheck/log 05:15:32 ++ awk -F/ '{print $2}' 05:15:32 + tox_env=docs-linkcheck 05:15:32 + cp -r .tox/docs-linkcheck/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs-linkcheck 05:15:32 + for i in .tox/*/log 05:15:32 ++ echo .tox/docs/log 05:15:32 ++ awk -F/ '{print $2}' 05:15:32 + tox_env=docs 05:15:32 + cp -r .tox/docs/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/docs 05:15:32 + for i in .tox/*/log 05:15:32 ++ echo .tox/pre-commit/log 05:15:32 ++ awk -F/ '{print $2}' 05:15:32 + tox_env=pre-commit 05:15:32 + cp -r .tox/pre-commit/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pre-commit 05:15:32 + for i in .tox/*/log 05:15:32 ++ echo .tox/pylint/log 05:15:32 ++ awk -F/ '{print $2}' 05:15:32 + tox_env=pylint 05:15:32 + cp -r .tox/pylint/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/pylint 05:15:32 + for i in .tox/*/log 05:15:32 ++ echo .tox/sims/log 05:15:32 ++ awk -F/ '{print $2}' 05:15:32 + tox_env=sims 05:15:32 + cp -r .tox/sims/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/sims 05:15:32 + for i in .tox/*/log 05:15:32 ++ echo .tox/tests200/log 05:15:32 ++ awk -F/ '{print $2}' 05:15:32 + tox_env=tests200 05:15:32 + cp -r .tox/tests200/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests200 05:15:32 + for i in .tox/*/log 05:15:32 ++ echo .tox/tests221/log 05:15:32 ++ awk -F/ '{print $2}' 05:15:32 + tox_env=tests221 05:15:32 + cp -r .tox/tests221/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests221 05:15:32 + for i in .tox/*/log 05:15:32 ++ echo .tox/tests71/log 05:15:32 ++ awk -F/ '{print $2}' 05:15:32 + tox_env=tests71 05:15:32 + cp -r .tox/tests71/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests71 05:15:32 + for i in .tox/*/log 05:15:32 ++ echo .tox/testsPCE/log 05:15:32 ++ awk -F/ '{print $2}' 05:15:32 + tox_env=testsPCE 05:15:32 + cp -r .tox/testsPCE/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/testsPCE 05:15:32 + for i in .tox/*/log 05:15:32 ++ echo .tox/tests_hybrid/log 05:15:32 ++ awk -F/ '{print $2}' 05:15:32 + tox_env=tests_hybrid 05:15:32 + cp -r .tox/tests_hybrid/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_hybrid 05:15:32 + for i in .tox/*/log 05:15:32 ++ echo .tox/tests_tapi/log 05:15:32 ++ awk -F/ '{print $2}' 05:15:32 + tox_env=tests_tapi 05:15:32 + cp -r .tox/tests_tapi/log /w/workspace/transportpce-tox-verify-transportpce-master/archives/tox/tests_tapi 05:15:32 + DOC_DIR=docs/_build/html 05:15:32 + [[ -d docs/_build/html ]] 05:15:32 + echo '---> Archiving generated docs' 05:15:32 ---> Archiving generated docs 05:15:32 + mv docs/_build/html /w/workspace/transportpce-tox-verify-transportpce-master/archives/docs 05:15:32 + echo '---> tox-run.sh ends' 05:15:32 ---> tox-run.sh ends 05:15:32 + test 1 -eq 0 05:15:32 + exit 1 05:15:32 ++ '[' 1 = 1 ']' 05:15:32 ++ '[' -x /usr/bin/clear_console ']' 05:15:32 ++ /usr/bin/clear_console -q 05:15:32 Build step 'Execute shell' marked build as failure 05:15:32 $ ssh-agent -k 05:15:32 unset SSH_AUTH_SOCK; 05:15:32 unset SSH_AGENT_PID; 05:15:32 echo Agent pid 1570 killed; 05:15:32 [ssh-agent] Stopped. 05:15:32 [PostBuildScript] - [INFO] Executing post build scripts. 05:15:32 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins4199364385371733382.sh 05:15:32 ---> sysstat.sh 05:15:32 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins16590753369112608194.sh 05:15:32 ---> package-listing.sh 05:15:32 + '[' -f /etc/os-release ']' 05:15:32 + . /etc/os-release 05:15:32 ++ PRETTY_NAME='Ubuntu 22.04.5 LTS' 05:15:32 ++ NAME=Ubuntu 05:15:32 ++ VERSION_ID=22.04 05:15:32 ++ VERSION='22.04.5 LTS (Jammy Jellyfish)' 05:15:32 ++ VERSION_CODENAME=jammy 05:15:32 ++ ID=ubuntu 05:15:32 ++ ID_LIKE=debian 05:15:32 ++ HOME_URL=https://www.ubuntu.com/ 05:15:32 ++ SUPPORT_URL=https://help.ubuntu.com/ 05:15:32 ++ BUG_REPORT_URL=https://bugs.launchpad.net/ubuntu/ 05:15:32 ++ PRIVACY_POLICY_URL=https://www.ubuntu.com/legal/terms-and-policies/privacy-policy 05:15:32 ++ UBUNTU_CODENAME=jammy 05:15:32 + case " ${ID:-} ${ID_LIKE:-} " in 05:15:32 + OS_FAMILY=debian 05:15:32 + workspace=/w/workspace/transportpce-tox-verify-transportpce-master 05:15:32 + START_PACKAGES=/tmp/packages_start.txt 05:15:32 + END_PACKAGES=/tmp/packages_end.txt 05:15:32 + DIFF_PACKAGES=/tmp/packages_diff.txt 05:15:32 + PACKAGES=/tmp/packages_start.txt 05:15:32 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 05:15:32 + PACKAGES=/tmp/packages_end.txt 05:15:32 + case "${OS_FAMILY}" in 05:15:32 + grep '^ii' 05:15:32 + dpkg -l 05:15:32 + '[' -f /tmp/packages_start.txt ']' 05:15:32 + '[' -f /tmp/packages_end.txt ']' 05:15:32 + diff /tmp/packages_start.txt /tmp/packages_end.txt 05:15:32 + '[' /w/workspace/transportpce-tox-verify-transportpce-master ']' 05:15:32 + mkdir -p /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 05:15:32 + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/transportpce-tox-verify-transportpce-master/archives/ 05:15:32 + exit 0 05:15:32 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins6442247025146722514.sh 05:15:32 ---> capture-instance-metadata.sh 05:15:32 Setup pyenv: 05:15:32 system 05:15:32 3.8.20 05:15:32 3.9.20 05:15:32 3.10.15 05:15:32 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 05:15:32 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-VqG0 from file:/tmp/.os_lf_venv 05:15:32 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 05:15:35 lf-activate-venv(): INFO: Installing additional packages: lftools 05:15:51 lf-activate-venv(): INFO: Adding /tmp/venv-VqG0/bin to PATH 05:15:51 INFO: Running in OpenStack, capturing instance metadata 05:15:51 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins10940013340230535957.sh 05:15:51 provisioning config files... 05:15:52 Could not find credentials [logs] for transportpce-tox-verify-transportpce-master #6145 05:15:52 copy managed file [jenkins-log-archives-settings] to file:/w/workspace/transportpce-tox-verify-transportpce-master@tmp/config2921694773264027125tmp 05:15:52 Regular expression run condition: Expression=[^.*logs-s3.*], Label=[odl-logs-s3-cloudfront-index] 05:15:52 Run condition [Regular expression match] enabling perform for step [Provide Configuration files] 05:15:52 provisioning config files... 05:15:52 copy managed file [jenkins-s3-log-ship] to file:/home/jenkins/.aws/credentials 05:15:52 [EnvInject] - Injecting environment variables from a build step. 05:15:52 [EnvInject] - Injecting as environment variables the properties content 05:15:52 SERVER_ID=logs 05:15:52 05:15:52 [EnvInject] - Variables injected successfully. 05:15:52 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins14711342318208609789.sh 05:15:52 ---> create-netrc.sh 05:15:52 WARN: Log server credential not found. 05:15:52 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins8669127506263283608.sh 05:15:52 ---> python-tools-install.sh 05:15:52 Setup pyenv: 05:15:52 system 05:15:52 3.8.20 05:15:52 3.9.20 05:15:52 3.10.15 05:15:52 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 05:15:52 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-VqG0 from file:/tmp/.os_lf_venv 05:15:52 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 05:15:54 lf-activate-venv(): INFO: Installing additional packages: lftools 05:16:03 lf-activate-venv(): INFO: Adding /tmp/venv-VqG0/bin to PATH 05:16:03 [transportpce-tox-verify-transportpce-master] $ /bin/sh /tmp/jenkins5091092234842864708.sh 05:16:03 ---> uv-install.sh 05:16:03 uv 0.12.23 is already installed 05:16:03 uvx 0.12.23 (x86_64-unknown-linux-gnu) 05:16:03 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins9990352070150482865.sh 05:16:03 ---> sudo-logs.sh 05:16:03 Archiving 'sudo' log.. 05:16:03 [transportpce-tox-verify-transportpce-master] $ /bin/bash /tmp/jenkins4855478929364810690.sh 05:16:03 ---> job-cost.sh 05:16:03 INFO: Activating Python virtual environment... 05:16:03 Setup pyenv: 05:16:03 system 05:16:03 3.8.20 05:16:03 3.9.20 05:16:03 3.10.15 05:16:03 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 05:16:03 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-VqG0 from file:/tmp/.os_lf_venv 05:16:03 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 05:16:05 lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 05:16:13 lf-activate-venv(): INFO: Adding /tmp/venv-VqG0/bin to PATH 05:16:13 INFO: No stack-cost file found 05:16:13 INFO: Instance uptime: 731s 05:16:13 INFO: Fetching instance metadata (attempt 1 of 3)... 05:16:13 DEBUG: URL: http://169.254.169.254/latest/meta-data/instance-type 05:16:13 INFO: Successfully fetched instance metadata 05:16:13 INFO: Instance type: v3-standard-4 05:16:13 INFO: Retrieving pricing info for: v3-standard-4 05:16:13 INFO: Fetching Vexxhost pricing API (attempt 1 of 3)... 05:16:13 DEBUG: URL: https://pricing.vexxhost.net/v1/pricing/v3-standard-4/cost?seconds=731 05:16:13 INFO: Successfully fetched Vexxhost pricing API 05:16:14 INFO: Retrieved cost: 0.11 05:16:14 INFO: Retrieved resource: v3-standard-4 05:16:14 INFO: Creating archive directory: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost 05:16:14 INFO: Archiving costs to: /w/workspace/transportpce-tox-verify-transportpce-master/archives/cost.csv 05:16:14 INFO: Successfully archived job cost data 05:16:14 DEBUG: Cost data: transportpce-tox-verify-transportpce-master,6145,2026-10-08 05:16:14,v3-standard-4,731,0.11,0.00,FAILURE 05:16:14 [transportpce-tox-verify-transportpce-master] $ /bin/bash -l /tmp/jenkins3463801750893117459.sh 05:16:14 ---> logs-deploy.sh 05:16:14 Setup pyenv: 05:16:14 system 05:16:14 3.8.20 05:16:14 3.9.20 05:16:14 3.10.15 05:16:14 * 3.11.10 (set by /w/workspace/transportpce-tox-verify-transportpce-master/.python-version) 05:16:14 lf-activate-venv(): INFO: Reuse venv:/tmp/venv-VqG0 from file:/tmp/.os_lf_venv 05:16:14 lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) 05:16:16 lf-activate-venv(): INFO: Installing additional packages: lftools urllib3~=1.26.15 05:16:25 lf-activate-venv(): INFO: Adding /tmp/venv-VqG0/bin to PATH 05:16:25 WARNING: Nexus logging server not set 05:16:25 INFO: S3 path logs/releng/vex-yul-odl-jenkins-1/transportpce-tox-verify-transportpce-master/6145/ 05:16:25 INFO: archiving logs to S3 05:16:26 ---> uname -a: 05:16:26 Linux prd-ubuntu2204-docker-4c-16g-62869 5.15.0-198-generic #208-Ubuntu SMP Fri Sep 4 10:22:38 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux 05:16:26 05:16:26 05:16:26 ---> lscpu: 05:16:26 Architecture: x86_64 05:16:26 CPU op-mode(s): 32-bit, 64-bit 05:16:26 Address sizes: 40 bits physical, 48 bits virtual 05:16:26 Byte Order: Little Endian 05:16:26 CPU(s): 4 05:16:26 On-line CPU(s) list: 0-3 05:16:26 Vendor ID: AuthenticAMD 05:16:26 Model name: AMD EPYC-Rome Processor 05:16:26 CPU family: 23 05:16:26 Model: 49 05:16:26 Thread(s) per core: 1 05:16:26 Core(s) per socket: 1 05:16:26 Socket(s): 4 05:16:26 Stepping: 0 05:16:26 BogoMIPS: 5600.00 05:16:26 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 05:16:26 Virtualization: AMD-V 05:16:26 Hypervisor vendor: KVM 05:16:26 Virtualization type: full 05:16:26 L1d cache: 128 KiB (4 instances) 05:16:26 L1i cache: 128 KiB (4 instances) 05:16:26 L2 cache: 2 MiB (4 instances) 05:16:26 L3 cache: 64 MiB (4 instances) 05:16:26 NUMA node(s): 1 05:16:26 NUMA node0 CPU(s): 0-3 05:16:26 Vulnerability Gather data sampling: Not affected 05:16:26 Vulnerability Indirect target selection: Not affected 05:16:26 Vulnerability Itlb multihit: Not affected 05:16:26 Vulnerability L1tf: Not affected 05:16:26 Vulnerability Mds: Not affected 05:16:26 Vulnerability Meltdown: Not affected 05:16:26 Vulnerability Mmio stale data: Not affected 05:16:26 Vulnerability Reg file data sampling: Not affected 05:16:26 Vulnerability Retbleed: Mitigation; untrained return thunk; SMT disabled 05:16:26 Vulnerability Spec rstack overflow: Mitigation; SMT disabled 05:16:26 Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp 05:16:26 Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization 05:16:26 Vulnerability Spectre v2: Mitigation; Retpolines; IBPB conditional; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected 05:16:26 Vulnerability Srbds: Not affected 05:16:26 Vulnerability Tsa: Not affected 05:16:26 Vulnerability Tsx async abort: Not affected 05:16:26 Vulnerability Vmscape: Not affected 05:16:26 05:16:26 05:16:26 ---> nproc: 05:16:26 4 05:16:26 05:16:26 05:16:26 ---> df -h: 05:16:26 Filesystem Size Used Avail Use% Mounted on 05:16:26 tmpfs 1.6G 1.1M 1.6G 1% /run 05:16:26 /dev/vda1 78G 11G 67G 15% / 05:16:26 tmpfs 7.9G 0 7.9G 0% /dev/shm 05:16:26 tmpfs 5.0M 0 5.0M 0% /run/lock 05:16:26 /dev/vda15 105M 6.1M 99M 6% /boot/efi 05:16:26 tmpfs 1.6G 4.0K 1.6G 1% /run/user/1001 05:16:26 05:16:26 05:16:26 ---> free -m: 05:16:26 total used free shared buff/cache available 05:16:26 Mem: 15989 708 9471 4 5809 14936 05:16:26 Swap: 1023 0 1023 05:16:26 05:16:26 05:16:26 ---> ip addr: 05:16:26 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 05:16:26 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 05:16:26 inet 127.0.0.1/8 scope host lo 05:16:26 valid_lft forever preferred_lft forever 05:16:26 inet6 ::1/128 scope host 05:16:26 valid_lft forever preferred_lft forever 05:16:26 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 05:16:26 link/ether fa:16:3e:46:47:67 brd ff:ff:ff:ff:ff:ff 05:16:26 altname enp0s3 05:16:26 inet 10.30.170.10/23 metric 100 brd 10.30.171.255 scope global dynamic ens3 05:16:26 valid_lft 85665sec preferred_lft 85665sec 05:16:26 inet6 fe80::f816:3eff:fe46:4767/64 scope link 05:16:26 valid_lft forever preferred_lft forever 05:16:26 3: docker0: mtu 1458 qdisc noqueue state DOWN group default 05:16:26 link/ether 86:e4:e4:76:46:25 brd ff:ff:ff:ff:ff:ff 05:16:26 inet 10.250.0.254/24 brd 10.250.0.255 scope global docker0 05:16:26 valid_lft forever preferred_lft forever 05:16:26 inet6 fe80::84e4:e4ff:fe76:4625/64 scope link 05:16:26 valid_lft forever preferred_lft forever 05:16:26 05:16:26 05:16:26 ---> sar -b -r -n DEV: 05:16:26 Linux 5.15.0-198-generic (prd-ubuntu2204-docker-4c-16g-62869) 10/08/26 _x86_64_ (4 CPU) 05:16:26 05:16:26 05:04:13 LINUX RESTART (4 CPU) 05:16:26 05:16:26 05:16:26 ---> sar -P ALL: 05:16:26 Linux 5.15.0-198-generic (prd-ubuntu2204-docker-4c-16g-62869) 10/08/26 _x86_64_ (4 CPU) 05:16:26 05:16:26 05:04:13 LINUX RESTART (4 CPU) 05:16:26 05:16:26 05:16:26